Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Processing Using ASP

Status
Not open for further replies.

gday

Technical User
Jan 7, 2001
1
US
Hello,

I was wondering if anyone might have the answer to my question. I'm wondering how to write an asp file that will process the text information in my form so that it is formatted a particular way, and then have the asp page
e-mail it to myself. I don't want to use the unsecure "mailto:" tag in the form's html itself, and I don't know how to write cgi scripts.

Any advice?

Thanks
 
In order to mail in ASP you need to know which mail program your ISP is using.
Mine uses Persits
Others us CDONTS

For Persits here is a VBScript ASP snippet

<% ' Email results to poster
Set Mail2 = Server.CreateObject(&quot;Persits.MailSender&quot;)
Mail2.Host = &quot;smtp.yoursite.com&quot; ' Specify a valid SMTP server
Mail2.From = Email_of_Poster ' Specify sender's address
Mail2.FromName = Name_of_Poster ' Specify sender's name

Mail2.AddAddress &quot;someone@yoursite.com&quot;


Mail2.Subject = &quot;Reply form your Site&quot;
msg = Name_of_submitter &amp; &quot; has posted a response to your &quot; &amp;

Subject_of_Current_Post
Mail2.Body = msg
On Error Resume Next
Mail2.Send
If Err <> 0 Then
Response.Write &quot;Error encountered: &quot; &amp; Err.Description
End If
%>

DougP, MCP
dposton@universal1.com

Ask me how Bar-codes can help you be more productive.
 
There are several components that enable you to do this. You may already have one, if you have an SMTP server installed alongside IIS - it's called CDONTS. Here is the documentation and an article for CDONTS:



There are also several other components available (if I missed any, let us know)

Genusa's AspMail

ASPEmail

Dundas Mailer

MailListBot

EasyMail

w3 Jmail

HTMLMailer / HTMLMailerPlus

DevMailer

VSEmail

Mabry Mail

NNTPClient+SMTPClient

SimpleMail

AB Active X Mailer

OCXMail

WindMail

Zaks.POP3


Silvers5 aka El-pirate
As seen on
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top