title: Launching email application (MAPI) from C# (with attachment)
body: <p>In the past I have used MAPISendMail to launch Outlook (or whatever the desired MAPI email application was) from a C++ application with a file attachment. (Similar to say Microsoft Word's Send Email functionality).</p>
  
  <p>I need to do the equivalent from a C# application and to have it work when running on XP, Vista, Server 2008 (and Windows 7 I suppose).</p>
  
  <p>MAPISendMail is a no go under Vista/2008 as it always returns MAPI_ E_FAILURE when Outlook is running and MAPI is not supported in managed code.
  Even after checking this fix:
  <a href="http://support.microsoft.com/kb/939718" rel="noreferrer">http://support.microsoft.com/kb/939718</a>
  I can't get it to reliably work.</p>
  
  <p><strong>I know that Microsoft Word &amp; Adobe Reader 9 can both launch Outlook with an attachment under Vista.</strong></p>
  
  <p><strong>A C# compatible solution would be preferred but I'd be happy with anything that works (doesn't have to use MAPI). I can't seem to find what the current "solution" is. None of the existing answers on Stack Overflow seem to cover this either.</strong></p>
  
  <p><strong><em>Edit:</em></strong></p>
  
  <p>I am aware MAPI and C# do not work together, so I will take a C/C++ solution that works in Vista and Server 2008 when <strong>NOT</strong> running as administrator. See Adobe Reader 9 &amp; Microsoft Word as examples that work.</p>