M mp Apr 8, 2004 #1 Hi, Is possible to send e-mail with attachement and how. Is there some example? Thanks
M Mike Kitchen Apr 8, 2004 #2 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
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
M Marc Bernard Apr 8, 2004 #3 mp said: Hi, Is possible to send e-mail with attachement and how. Is there some Click to expand... example? Try this: http://www.codeproject.com/csharp/simplemapidotnet.asp Marc
mp said: Hi, Is possible to send e-mail with attachement and how. Is there some Click to expand... example? Try this: http://www.codeproject.com/csharp/simplemapidotnet.asp Marc
G Guest Apr 8, 2004 #4 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
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