CDO:

I try to use CDONTS and its not working?

On windows 2000 servers only CDO works. CDONTS was for only NT servers.

Please refer to the following code example:

 

<%
 Set oMail = Server.CreateObject("CDO.Message")

 oMail.From = "youraddress@yourdomain.com"

 oMail.To = "someone@someotherdomain.com"

 oMail.Subject = "Message Subject"

 oMail.textBody = "Text Body of your message"

 '==This section provides the configuration information for the remote

 SMTP server. '==Normally you will only change the server name or IP.

 oMail.Configuration.Fields.Item

 ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

 'Name or IP of Remote SMTP Server oMail.Configuration.Fields.Item _

 ("http://schemas.microsoft.com/cdo/configuration/smtpserver") =

 "mail.yourdomain.com"

 'Server port (typically 25)

 oMail.Configuration.Fields.Item _

 ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

 oMail.Configuration.Fields.Update

 '==End remote SMTP server configuration section==

 oMail.Send()
 'Clean up server resources.
 Set oMail = nothing %>