To read the article online, visit

Sending an Email with an Attachment
By Rob Taylor

Here is a simple example of sending an email with an attachment using CDONTS.

  Option Explicit
  Dim objMail
  Set objMail = Server.CreateObject("CDONTS.NewMail")
     objMail.From = ""
     objMail.Subject = "A message TO you"
     objMail.To = ""
     objMail.Body = "This is the body of the Message"
 Response.write("Mail was Sent")
 'You must always do this with CDONTS.
  set objMail = nothing

Article Information
Article Title: Sending an Email with an Attachment
Article Author: Scott Mitchell
Article URL:

Copyright 2018 QuinStreet Inc. All Rights Reserved.
Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers