Search Tools Links Login

How to send email from ASP (Part I of II)

Want to send SMTP email from your ASP app? CDONTS is a free e-mail component that comes with IIS4, that (despite its weird name) is very easy to use and has good performance.
The setup actually takes longer than the trivial scripting. To set it up, first, make sure you have installed the SMTP service. It is installed with IIS by default, but if you've messed with your settings, you may ahve to reinstall it. Check that the SMTP service shows up in the services part of the control panel and that the file CDONTS.DLL shows up in your System32 directory.
Then using the following code. Don't forget to substitute the email address you want to send to for, which appears twice in the code).

Original Author: Ian Ippolito (vWorker)


Dim objMail
Set objMail = CreateObject("CDONTS.NewMail")
objMail.Send "","","Subject: You are now email enabled!","Yes, you now have the power of SMTP email from your apps, thanks to IIS and CDONTS.Newmail!"

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 127 times




No attachments for this post

Loading Comments ...


No comments have been added for this post.

You must be logged in to make a comment.