This article shows how to send email from an ASP page using CDONTS Component.
Sub send_email(email_from, email_to, email_subject, email_body)
Set Newmail = server.CreateObject ("cdonts.newmail")
Newmail.BodyFormat = 0
Newmail.MailFormat = 0
Newmail.From = email_from
Newmail.To = email_to
Newmail.Subject = email_subject
Newmail.Body = email_body
Set Newmail = Nothing
To call the procedure:
If you have any difficulty using CDONTS, it is most often the configuration of the SMTP service on IIS. There is not much that can go wrong with this simple, yet extremely powerful component.