Sending email via .asp

J

Johnfli

Set ObjMail = CreateObject("CDONTS.NewMail")
ObjMail.From = emlFrom
ObjMail.To = emlAddress
ObjMail.Subject = emlSubject
ObjMail.Body = emlBody
ObjMail.Send
Set ObjMail = Nothing



I recently upgraded my webserver from NT4.0 to Windows 2003 Web Edition.
Now, the above code no longer works.
It worked great on NT4

What do I need to do to make it work with my new server?
 
M

Mike Brind

Johnfli said:
Set ObjMail = CreateObject("CDONTS.NewMail")
ObjMail.From = emlFrom
ObjMail.To = emlAddress
ObjMail.Subject = emlSubject
ObjMail.Body = emlBody
ObjMail.Send
Set ObjMail = Nothing



I recently upgraded my webserver from NT4.0 to Windows 2003 Web Edition.
Now, the above code no longer works.
It worked great on NT4

What do I need to do to make it work with my new server?

Either get a copy cdonts.dll and register it on the server (quick
solution), or migrate your code to use cdosys.dll. (preferred solution)

http://www.aspfaq.com/show.asp?id=2026
 
M

Michael Kujawa

hmmm
tried to cancel my reply post after I saw Mike B
had already answered. There is a definite time lag
on this server.

msnews.microsoft.com does not allow canceling
messages?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top