Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDONTS attachment

Status
Not open for further replies.

dcarbone

Programmer
Aug 22, 2003
29
CA
What is the proper syntax for sending an attachement using CDONTS
 
set myMail = server.CreateObject("CDONTS.NewMail")
myMail.From = "you@yourdomain.com"
myMail.To = "someone@somewhere.com"
myMail.Subject = "Attachment Test"
myMail.body = "This is a test."
myMail.AttachFile server.MapPath("attachedfile.asp")
myMail.Send
set myMail = nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top