How do I send an email from a WinRT/Windows Store application?

user1211925 picture user1211925 · Oct 4, 2012 · Viewed 15.1k times · Source

I am developing a Windows Store Application (Windows 8).

I have a need to send emails based on data and address stored in the application data and without the need of the user to type it the data or the address.

What would be the right/easy way to implement it?

EitanB

Answer

Aghilas Yakoub picture Aghilas Yakoub · Oct 4, 2012

You can try with

var mailto = new Uri("mailto:[email protected]&subject=The subject of an email&body=Hello from a Windows 8 Metro app."); 
await Windows.System.Launcher.LaunchUriAsync(mailto);