E-mail with attach

  • Thread starter Thread starter mp
  • Start date Start date
Is this from a webForm or winForm?

If webForm have a look at the following link
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWebMailMailMes
sageClassTopic.asp

If winForm, I am not sure that you can actually do this using the mailto:
message as in

http://www.publicjoe.f9.co.uk/csharp/snip/snip07.html

but you would add &attachment="c:\\..." to the mailto if you could. I have
not had any success with this myself.

Hope this helps

Publicjoe
C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Snippets at http://www.publicjoe.f9.co.uk/csharp/snip/snippets.html
 
include a reference to System.Web.Mail Namespac

And use The SMTP.Send Function to send the email and the MailMessage Class to add attachments
 
Back
Top