Send Email and Attachment

雨燕双飞 提交于 2019-12-12 15:45:58

问题


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.



来源:https://stackoverflow.com/questions/18460113/send-email-and-attachment

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!