Send Email and Attachment

2019-07-07 06:10发布

问题:

I used below code to send email. But when I run it in Simulator in VS, the email client can not be launched. What I did wrong? But the Email Client launched in Localmachine mode.

var mailto = new Uri("mailto:?to=recipient@example.com&subject=Win8 Email&body=n Hi.");

await Windows.System.Launcher.LaunchUriAsync(mailto);

回答1:

This is the answer.

Using WinRT in Windows 8.0 you cannot attach an attachment at this time.

Sorry if that is not the answer you wanted to hear.

You can always use a service to send the email; then you can/could do anything.



标签: winrt-xaml