Need help in coding the below requirement using C#.net..(Attach a file to new mail wi
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Need help in coding the below requirement using C#.net..(Attach a file to new mail wi

  1. #1
    Join Date
    May 2013
    Posts
    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

  2. #2
    Arjay's Avatar
    Arjay is online now Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    10,975

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center