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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending an email with an attachment?

Status
Not open for further replies.

HUSQVARNA

Programmer
Sep 15, 2002
1
SE
How do I send email with an atachment using ASP whith using the clients email program, for example Outlock?

Is it possible to add an attachment and message to mailto?
HREF ="mailto:msn@hotmail.com" ....atttachment and message
 
I would also like an answer to this as I was unable to find it.
My solution was to upload the file onto the server via the form/multi-part type and the posting acceptor and then use CDONTS to mail the attatchment.

James :) James Culshaw
jculshaw@active-data-solutions.co.uk
 
You can use the "AttachFile()" method of "NewMail" object from the CDONTS library:
'//sample//
Dim myMail
Set myMail = CreateObject("CDONTS.NewMail")
myMail.To = "ntbutic@kimianet.com"
myMail.Subject = "Sample attachment"
myMail.Body = "This mail is attached to a file."
myMail.AttachFile "c:\attach.txt"
myMail.Send
Set myMail = Nothing
'//end sample//
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top