title: How to send an email via UWP 10 app
body: <p>I want to send an email via my UWP 10 app. here is the code i used but i get nothing and the project crashes (I don't know what to put in the xaml page also)</p>
  
  <pre><code>private async void SendEmailButton_Click(object sender, RoutedEventArgs e)
  {
      EmailMessage emailMessage = new EmailMessage();
      emailMessage.To.Add(new EmailRecipient("***@***.com"));
      string messageBody = "Hello World";
      emailMessage.Body = messageBody;
      await EmailManager.ShowComposeNewEmailAsync(emailMessage);
  }
  </code></pre>
  
  <p>PS: i don't need to send an attachement in my email
  <strong>that what i get in the debugger</strong> </p>
  
  <blockquote>
    <p>'EmailTest1.exe' (CoreCLR: DefaultDomain): Loaded 'C:\data\Programs\WindowsApps\Microsoft.NET.CoreRuntime.1.0_1.0.23430.0_x86__8wekyb3d8bbwe\mscorlib.ni.dll'. Cannot find or open the PDB file.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\entrypoint\EmailTest1.exe'. Symbols loaded.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\System.Runtime.dll'. Cannot find or open the PDB file.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\WinMetadata\Windows.winmd'. Module was built without symbols.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\System.Runtime.InteropServices.WindowsRuntime.dll'. Cannot find or open the PDB file.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\Microsoft.ApplicationInsights.Extensibility.Windows.dll'. Cannot find or open the PDB file.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\System.Threading.Tasks.dll'. Cannot find or open the PDB file.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTo.X\Microsoft.ApplicationInsights.dll'. Cannot find or open the PDB file.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\System.Runtime.WindowsRuntime.dll'. Cannot find or open the PDB file.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\System.Diagnostics.Debug.dll'. Cannot find or open the PDB file.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\System.Runtime.WindowsRuntime.UI.Xaml.dll'. Cannot find or open the PDB file.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\System.Collections.dll'. Cannot find or open the PDB file.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\System.Private.Uri.dll'. Cannot find or open the PDB file.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\Microsoft.ApplicationInsights.PersistenceChannel.dll'. Cannot find or open the PDB file.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\System.Threading.dll'. Cannot find or open the PDB file.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\System.Diagnostics.Tracing.dll'. Module was built without symbols.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\System.Linq.dll'. Cannot find or open the PDB file.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\System.IO.dll'. Cannot find or open the PDB file.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\System.Globalization.dll'. Module was built without symbols.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\System.Runtime.Extensions.dll'. Cannot find or open the PDB file.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\System.Reflection.dll'. Module was built without symbols.
    'EmailTest1.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\dc12aef2-b53e-4795-a606-9afcd5298032VS.Debug_x86.X\System.Reflection.Extensions.dll'. Module was built without symbols.
    The thread 0xd84 has exited with code 0 (0x0).
    The thread 0xc6c has exited with code 0 (0x0).</p>
  </blockquote>
  
  <p>THANK YOU</p>