AspMail is an active server component (COM Object) that enables your script to send email messages via any external SMTP server. The component supports multiple file attachments, multiple recipients, CCs, BCCs, and REPLY-TOs. More information can be found at:
The following is a working sample of how this component works on our hosting accounts. Please note that we do not provide support for this sample. It is only provided as a guide to help you get started.
This is what the ASP code looks like:
Set Mailer = Server.CreateObject ("SMTPsvg.Mailer")
Mailer.FromName = "mail from name"
Mailer.FromAddress = "firstname.lastname@example.org"
Mailer.Subject = "this is the subject of the mail"
Mailer.BodyText = "this is the body of the mail"
Mailer.RemoteHost = "mail.yourdomain.com"
Mailer.AddRecipient "this is the recipient of the mail", "email@example.com"
if Mailer.SendMail then
' Message sent sucessfully
response.write ("Your message was sent.")
' Message send failure
response.write ("Your message was not sent. ")
response.write ("The error was: " & Mailer.Response)