|
|
|
| Script: Basic CDOSYS Usage/Sample Script |
This will only work on web servers that are running IIS 6 and later.
Below is sample code for using
Microsoft's CDOSYS 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.TextBody: If you want to send the email in text format leave "Mailer.TextBody", if you want to send the email in HTML format change it to "Mailer.HTMLBody".
|
|
|
|
|
|
|
|