Emailing Form Results With CDO Emailing Form Results With CDO
2725Emailing Form Results With CDO Emailing Form Results With CDOhttp://aspexpress.com/tutorials/tutorial.asp?id=3Here's the Basic code for using CDO for emailing on an NT / IIS server. You must include the first section to instantiate the object, and the rest are the standard email sections. Be sure to fill in valid email addresses in the FROM and TO sections below.ASP > Tips and Tutorials > Email SystemsOct 10, 2006
The NewMail object gives you the ability to send a message within an ASP page with only few lines of code. The syntax for sending mail with the NewMail object of CDONTS is as follows:
I've always offered you the source code for my forms (in fact you can download the entire site), but it's now time to step through the code with you and explain the code in more detail.
In this tutorial I intend to teach you how to take a user entered email address and validate it on the server side. Mind you we're not checking to see if it actually exists, as if we could, but rather if it is in the correct syntax of a valid email address.
Before the sending of a mail to avoid a useless excess load on IIS, it is possible to use a simple function to verify that the email address is well formed. In a more pushed process we could be also brought to interrogate the smtp corresponding server to know if the address exists or not.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.