Sending an email in metro application?

前端 未结 2 1681
灰色年华
灰色年华 2021-01-27 02:15

I want to send an email with some content as a body in my metro app :-

1)since system.net.mail is not supported in metro application i have decided to use this :-

<
2条回答
  •  不思量自难忘°
    2021-01-27 02:58

    This is not the correct usage of the Win8/Metro design language. You want to enable support for the "Share Source" contract. Here is the link to the sample/support for how to use the sharing contract:

    http://code.msdn.microsoft.com/windowsapps/Sharing-Content-Target-App-e2689782

    It lets you specify a body (content), though the user could also choose to share it to something other than mail, and you don't get to specify an email address. There are several email sending services out there, and that might be a better solution if the user doesn't have to edit the email before it is sent.

提交回复
热议问题