|
|
|
| Script: Basic SMTPMail Usage/Sample Script |
Below is sample code for using
SoftArtisan's SMTPMail ASP Email Component. This is just the code that sends the email out.
You would pass information from a form to an asp page to gather the information you want to be mailed with. On the asp
page you would include some of this sample code to send the form information you want to you or your customer.
You will want to change the following information in the sample code:
Message: This is where the actual "body" of the email is.
Subject: This is where you want to put the "subject" of the email.
ToAddress: This is where you want to put the "email address" of where the email is to be send to.
FromAddress: This is where you want to put the "email address" of where the email is to be send from.
Mailer.BodyText: If you want to send the email in text format leave "Mailer.Bodytext", if you want to send the email in HTML format change it to "Mailer.HTMLtext".
Mailer.AddRecipient: You need to add a name of is receiving the email in qoutes (""), before the ToAddress variable.
Mailer.FromName: You need to add a name of who sent the email in qoutes ("").
Mailer.RemoteHost : This is the SMPT Server The Email Gets Sent From. Please ask your hosting provider for this information
|
|
|
|
|
|
|
|