NEW LISTINGS  HOT LISTINGS  TOP RATED  EDITOR PICK  ADD A LISTING  UPDATE A LISTING  GET RATED  UPGRADE A LISTING
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     MEMBER LIST     SUGGEST CATEGORY  

Average Visitor Rating: 0.00 (out of 5)
Number of ratings: 0 Votes

Visitor Rating

Sending eMail in ASP (CDONTS)
2717 Sending eMail in ASP (CDONTS) http://www.toxiclab.org/tutorial.asp?ID=32 Learn how to email the contents of a form using the CDONTS component from ASP. ASP > Tips and Tutorials > Email Systems Oct 10, 2006 Toxiclab

Write a Review   Add to My Favorite   Refer it to Friend   Report Broken Link  



Other links at ASP > Tips and Tutorials > Email Systems
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.
Category:

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:


objNewMail.Send( [From] [, To] [, Subject] [, Body] )

You can create the instance of NewMail Object with the following code.
Category:

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.
Category:

Now let’s open up the Actions panel and start typing some codes. We’ll be doing a few things here. I won’t be able to explain every detail about everything used because this tutorial would be way too long. We’re simply going to use a flash object called “LoadVars”. We’re also going to surround the whole thing inside an “onRelase” function for the submit button. We will also do some data validation. Also note, there is some extra code, simply for the sake of this tutorial that will allow you to decide whether to use the ASP, PHP, or Perl file. Here’s the code
Category:

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.
Category:




Main Category
165
2028
756
275
169
1801
1074
892
1127
7088
70
874
58
2145
170

Join Mailing List
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.



Top 10
Directory Statistics

Links: 18673
Categories: 1275
Registered Users: 537
Mailing List Subscribers: 2031
Unique Outgoing Hits: 192730

Pagerank Statistics
PR 10
2 site(s)
PR 9
9 site(s)
PR 8
28 site(s)
PR 7
243 site(s)
PR 6
772 site(s)
PR 5
1845 site(s)

PHP News