To get our newsletter please fill out this form by hilighting what the form says.Ignore things you dont know how to answer.
                               Thanks
                                  Brandon
                                     Powell
HTML> Chilkat WebMail Example: Send an Email from an HTML form

Fill out this form, click Submit, and your email will be sent.

Your Name
Your Email Address
Recipient Name
Recipient Email Address
Subject
Email Text

Hosted by www.Geocities.ws

This is the form target (send_email.asp): <%@ LANGUAGE="VBSCRIPT" %> Chilkat WebMail Example: Send an Email from an HTML form
Sending email from an HTML form....

<% ' Create a mailman. The mailman can send and receive Email. set mailman = Server.CreateObject("ChilkatWebMail.WebMailMan") ' Unlock the component - use your trial or purchased unlock code. mailman.UnlockComponent "unlock_code" ' Tell the mailman where the SMTP server is located mailman.SmtpHost = "smtp.my_company.com" ' Create an empty Email message set email = Server.CreateObject("ChilkatWebMail.WebEmail") ' Enter the recipient's information from form variables. email.AddTo Request.Form("toName"), Request.Form("toAddress") ' Enter the sender's information from form variables. email.FromName = Request.Form("fromName") email.FromAddress = Request.Form("fromAddress") ' Enter the email subject email.Subject = Request.Form("emailSubject") ' Enter the email text email.Body = Request.Form("emailText") ' Send the email if mailman.SendEmail(email) then Response.write "Message sent successfully!

" else Response.write "ERROR: Message not sent!

" end if %>
(View page source to see the log) <% Response.write mailman.GetInstanceLog() %> <% ' Standard ASP cleanup of objects Set email = Nothing Set mailman = Nothing %>
DONE.
Hosted by www.Geocities.ws

Hosted by www.Geocities.ws

1