Disable body of mail in WINRT application

前端 未结 2 436
说谎
说谎 2021-01-29 05:23

I have a date picker and time picker in my app and I\'m trying to send mail as described here which contains the date

相关标签:
2条回答
  • 2021-01-29 06:03

    The way you decided to generate the email, you don't have any control over the email client from that point on - you have called an external process and passed your parameters to it. The user could do with that email whatever he wanted or even delete it without sending, without you knowing about it. Also you are depending on the user having the system setup correctly for this link to work.

    To keep control over the email you are sending you shouldn't depend on external applications, therefore the solution with sharing won't help you either, even though it's prefered in Windows Store apps over the one you are currently using.

    If you really need to have the email sent unchanged, you only have two options:

    • Use a client side SMTP library for sending emails. The only one I know of for Windows Store apps was released by Limilabs. The downside is that you need to configure your app locally with SMTP server settings.
    • Send a request to a web service and send the email from there. This is probably the best approach, since it is completely under your own control and doesn't require any additional configuration on the client side.
    0 讨论(0)
  • 2021-01-29 06:27

    AFAIK you cant disable the recipient, subject or body of an email.

    If you want to detect an edit, then you can add a checksum to the body.

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