Frequently Asked Questions
Our most commonly asked questions (with
answers!) are below.
Your question isn't answered here? Contact
Us or complete the Support
Request form.
CDONTS is used by ASP to send mail from a script. However, it has been replaced by CDOSYS, so you should consider using CDOSYS instead. A working example is below:
Set objMail = Server.CreateObject("CDONTS.NewMail") objMail.From = txFromAddress objMail.Subject = txSubject objMail.To = txToAddress objMail.cc = "ccUser@somedomain.com" 'Comment line out if not CCing objMail.Body = txMessage objMail.BodyFormat =0 ' html format. Comment line out for text based email objMail.MailFormat = 0 ' MIME format. Comment line out for text based email objMail.Value("Content-Transfer-Encoding") = "8bit" objMail.Send
'You must always do this with CDONTS. You should do it anyway. set objMail = nothing