2730An SMTP Service Directory Readerhttp://www.asp101.com/articles/john/smtpreader/default.aspGood question... once again a little background here will probably work better then anything else to get the point across. You know all those email you send using CDO or CDONTS? What happens to the ones that are addressed wrong? What if the sender or recipient's address isn't formatted correctly? Well, I'll tell you... the SMTP service just drops them and leaves them there building up in its mail directories until you run out of disk space! Well probably not really... they're pretty small after all, but they do generally just get left there unless you go clean them out. This normally is not a big deal, but when something goes wrong like...ASP > Tips and Tutorials > Email SystemsOct 10, 2006
There exists an inconsistency within the web when it comes to email addresses. The big problem is that there is not a be-all, end-all algorithm for email address validation. This means a million programmers have stepped up to the challenge, myself included, to fill that gap by creating email validators. The problem is, each one is different. Some are too tight, some are too loose, some just dont work at all.
Sending an email with asp is fairly easy, all you need is CDONTS (Collaboration Data Objects for NT Server, installed with IIS), or a special component like AspEmail ( free ) by Persits Software Inc (there are more available).
Here'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.
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.