Send Email with attachment to a specific recipiant , using share Content WinRT
<p>I'm using WinRT and I want to send an email with attachment to a specific recipient programatically, that means the user of the app will not write the recipient address.
I found to solutions that dont correspond to my needs.</p>

<p>the first one is to use mailto protocol like this :</p>

<pre><code>var mailto = new Uri("mailto:?to=ratatata@gmail.com&amp;subject=our first subject &amp;body=as you know this is our first mail baby ");
</code></pre>

<p>await Windows.System.Launcher.LaunchUriAsync(mailto);</p>

<p>this solution allow me to specify the recipient but the mailto protocol dont support attachement.</p>

<p>the second one is by using Share Content , like this microsoft sample ,
<a href="https://code.msdn.microsoft.com/windowsapps/Sharing-Content-Source-App-d9bffd84" rel="nofollow">https://code.msdn.microsoft.com/windowsapps/Sharing-Content-Source-App-d9bffd84</a></p>

<p>this solution allow me to attach any type of files , but the user of the app should write the email address of the recipient.</p>

<p>NB: any other methods using MessageEmail , and system.net.mail dont work !</p>

<p>Any help please !!</p>