title: Adding a dynamic attachment to an email in c#
body: <p>Folks,<br/>
  Using the <code>System.Diagnostics.Process.Start("mailto:</code> method of creating an email, is there a way to add a dynamic attachment (not a saved file) to the email?</p>
  
  <p>I'm pretty much doing the same as this the person in this <a href="https://stackoverflow.com/questions/5336239/how-to-attach-a-file-from-memorystream-to-a-mailmessage-in-c-sharp">question</a> but no-one has answered using the mailto: method. 
  Im just wondering if its possible, and how to do it.</p>
  
  <p>I've tried this but to no avail:</p>
  
  <pre><code>System.IO.MemoryStream ms = new System.IO.MemoryStream(generatedReport.DocumentBytes);
  System.Net.Mime.ContentType ct = new System.Net.Mime.ContentType(System.Net.Mime.MediaTypeNames.Application.Pdf);
  Attachment attachment = new Attachment(ms, ct);
  attachment.ContentDisposition.FileName = "output.pdf";                            
  System.Diagnostics.Process.Start("mailto:myemail &amp;SUBJECT=Test Subject BODY=Body Text&amp;Attachment=" + attachment);
  ms.Close();
  </code></pre>
  
  <p>Any and all help is appreciated</p>