<%
set objMail = Server.CreateObject("SMTPsvg.Mailer")
objMail.RemoteHost = "mail.smtp-server.com" ' Specify a valid SMTP server
objMail.FromAddress = "sendersemail@yourdomain.com" ' Specify sender's address (only one)
objMail.FromName = "Senders Name" ' Optionally specify sender's name
objMail.AddRecipient "Recipients Name", "recipientsemail@theirdomain.com" 'Specify recipient
objMail.AddCc = "Additional Recipients Name", "someotherrecipient@somedomain.com"
objMail.Bcc = "Additional Recipients Name", "someotherrecipient@somedomain.com"
objMail.AddAttachment = "c:\images\cakes.gif" 'How to add an attachment
objMail.Subject = "Sending Email with ASP using CDONTS"
objMail.BodyText = "Please disregard this email. It is only a test."
'---or---
objMail.BodyText = "<html><body><h1>Please disregard this email!</h1>It is only a test</body></html>"
objMail.ContentType = "text/html"
'--Finally, send it
objMail.SendMail
%>