-
May 7th, 2013, 01:53 AM
#1
Need help in coding the below requirement using C#.net..(Attach a file to new mail wi
I need to open a new mail window in microsoft outlook and attach a file from C;\...\... drive. I am using "Process.Start("mailto:" + EmailAddress + "?subject=" + Subject + "&body=" + Body + "&attach=" +CSVfilePath);" code to do this job, but the code does not attach the file...
Note: I need the new mail window open and I need to leave the choice to the user whether to click on Send button or not?...can someone please help............Thanks
-
May 7th, 2013, 04:35 PM
#2
Re: Need help in coding the below requirement using C#.net..(Attach a file to new mai
Why not send the attachment using the SmtpClient class? That way, you'll be able to receive rich error information to help determine any problems while sending.
http://msdn.microsoft.com/en-us/libr...tachments.aspx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|