Discussion Locked

How to send e-mail by ASP automatically

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How to send e-mail by ASP automatically?
I tried to use CDONTS.NewMail but failed.

5 replies

by i_am_whopper

This is kind of a vague post, what exactly do you mean by "sending email by ASP automatically"?

Do you have your SMTP mail service configured correctly?

As far as I know the main 2 ways to send email via ASP is with either the CDONTS or CDOSYS objects (depending upon the version of the windows operating system you are running).

by gy24hz13

I could not find "CDONTS" or "CDOSYS" in my registry
Are there any other ways to send e-mail by ASP?

by oshri

if you have the.net framework installed on your webserver, (if you don't you should).

Use the email component for .net its easier and faster, the only issue would be that your page has to be an aspx page.

You'll also need an smtp server to send the email.

by notoriousdog

CDONTS works with SMTP. SMTP can be controlled from the IIS Admin Snap-in.

You can also find free, third party dlls that do what CDONTS does (JMail is a good one).

by premk_ekk

U can use xp_sendmail...
CDONTS and xp_sendmail require you to have a MAPI client (aka, Outlook) installed and configured with a mailbox, on your web server, for it to work. In an enterprise environment, that would never happen.

Another solution would be to use a component like ASPMail (www.serverobjects.com) to send email. You can send an email from the ASP, or you could code it into an ActiveX script. I use this quite regularly.

This discussion is closed to new replies.