locked
Sending Email in windows phone 8

    Question

  • Hi Everybody

    which API should i use to be able to send email from

    windows phone 8?

    thank you in advance

    Wednesday, May 02, 2012 8:16 AM

Answers

  • Hi Mohannad,

    There is no such thing as Windows Phone 8.  Did you mean Metro style applications?  If so you can use the mailto: protocol in HTML5/JavaScript.  I don't think we have a specific example but if you 'bing' HTML mailto: or JavaScript mailto: you can find a lot of examples.

    -Jeff


    Jeff Sanders (MSFT)

    Wednesday, May 02, 2012 11:55 AM
    Moderator

All replies

  • Hi Mohannad,

    There is no such thing as Windows Phone 8.  Did you mean Metro style applications?  If so you can use the mailto: protocol in HTML5/JavaScript.  I don't think we have a specific example but if you 'bing' HTML mailto: or JavaScript mailto: you can find a lot of examples.

    -Jeff


    Jeff Sanders (MSFT)

    Wednesday, May 02, 2012 11:55 AM
    Moderator
  • In a Metro style app you can also use the share source contract to share data. Users can then select from their various email applications (Mail, Facebook, Twitter, etc.) for the share target.

    See Sharing and exchanging data and the Sharing content source app sample

    --Rob

    • Proposed as answer by YINLAY Thursday, May 30, 2013 10:26 AM
    • Unproposed as answer by YINLAY Thursday, May 30, 2013 10:26 AM
    Wednesday, May 02, 2012 11:20 PM
    Owner
  • If you're using XAML (not HTML/JS), you can still use the LaunchUriAsync method to open up the default mail client (or so it appears...)

    eg:

    Launcher.LaunchUriAsync(new Uri("mailto:tickets@trademetro.uservoice.com"));

    • Proposed as answer by YINLAY Thursday, May 30, 2013 10:27 AM
    Monday, May 14, 2012 6:01 AM