Sending an email in metro application?

前端 未结 2 1680
灰色年华
灰色年华 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:37

    The email story in WinStore apps is pretty broken right now. You can either use mailto: with no content or use share charms with no email details. I suspect they must enable support for some email document contracts at some point in the future, but I don't think it is available yet.

    *EDIT

    It also sounds like a great opportunity for someone to write a web service to send emails if a good one doesn't already exist. You could of course write one yourself.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题