CDONTS is no longer supported by Win2003. It is possible to make it work on 2003 but it's better to just upgrade to CDOSYS.
Main Topics
Browse All TopicsI have an older website that I've moved from a Windows 2000 Server to a newer Windows 2003 Server. Since that move, none of my "send me an email" forms are working. It appears to be an issue with the older CDONTS dll vs. whatever Win2k3 is using now. Unfortunately, I'm really not a developer or code guy :( I didn't write the SendMail code for this page either.
Here's the code as it stands right now. Any ideas??
Thanks,
Chumplet
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You can try sending a simple message like this;
Set objMessage = CreateObject("CDO.Message"
objMessage.Subject = "Example CDO Message"
objMessage.From = "me@my.com"
objMessage.To = "me@yahoo.com"
objMessage.TextBody = "This is some sample message text."
objMessage.Send
Here's what I use for one of my pages;
Dim objCDO
Set objCDO = Server.CreateObject("CDO.M
With objCDO
.To = "Mark G. Franz <mgfranz@xyz.com>"
.From = "whoever@yahoo.com"
.Subject = "Central Error Handler"
strBody = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN"">" & vbCrLf _
& "<html>" & vbCrLf _
& "<head>" & vbCrLf _
& " <title></title>" & vbCrLf _
& " <meta http-equiv=Content-Type content=""text/html; charset=iso-8859-1"">" & vbCrLf _
& "</head>" & vbCrLf _
& "<body bgcolor=""#ffffff"" style=""font-family : verdana, arial, Helvetica, sans-serif; color : #000000;"">" & vbCrLf _
& ' More html code here
& "</body>" & vbCrLf _
& "</html>" & vbCrLf _
& vbCrLf ' there has to be an additional <cr> here or you get an error
.HtmlBody = strBody
.Send
End With
Set objCDO = Nothing
%>
There is a good writeup on CDO here, http://www.paulsadowski.co
Did anything on the SMTP server change? If it has enabled email blocking or a spam protector it may not send mail.
Try this little test script on a blank.asp page;
<%
Dim ObjSendMail
Set ObjSendMail = CreateObject("CDO.Message"
'This section provides the configuration information for the remote SMTP server.
ObjSendMail.Configuration.
ObjSendMail.Configuration.
ObjSendMail.Configuration.
ObjSendMail.Configuration.
ObjSendMail.Configuration.
ObjSendMail.Configuration.
ObjSendMail.Configuration.
'End remote SMTP server configuration section==
ObjSendMail.To = "your email address"
ObjSendMail.Subject = "Test email"
ObjSendMail.From = "a valid email address
ObjSendMail.TextBody = "This is a test message"
ObjSendMail.Send
Set ObjSendMail = Nothing
%>
Business Accounts
Answer for Membership
by: slamhoundPosted on 2008-03-12 at 17:50:14ID: 21112319
Are you getting any error messages?
How is the code failing?
Have you checked with the server administrator to make sure you have permissions to send the email?
Has your mail server changed at all?