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

前端 未结 5 826
迷失自我
迷失自我 2020-12-05 20:05

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

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-05 20:55

    You can try with

    var mailto = new Uri("mailto:?to=recipient@example.com&subject=The subject of an email&body=Hello from a Windows 8 Metro app."); 
    await Windows.System.Launcher.LaunchUriAsync(mailto);
    

提交回复
热议问题