Sending emails in WinRT is easy, you only have to create a “mailto” –uri and launch it:
If you also want to define a subject, body or other fields, you can further extend the querystring:
That’s all. Not the most programmer friendly interface, but it works…
var mail = new Uri("mailto:test@somedomain.com"); await Windows.System.Launcher.LaunchUriAsync(mail);
If you also want to define a subject, body or other fields, you can further extend the querystring:
var mail = new Uri("mailto:?to=test@somedomain.com&subject=Some subject&body=Some other content."); await Windows.System.Launcher.LaunchUriAsync(mail);