locked
How to wrap text in a mail with Launcher.LaunchUriAsync RRS feed

  • Question

  • Hi,

    I'm trying to wrap body text of a mail.

    await Launcher.LaunchUriAsync(new Uri("mailto:?subject=" + subject + "&body=" + body));



    Text have three lines. I tryed "/n", "/r/n" but maybe html don't see them.

    body += resourceLoader.GetString("FirstAccessObject3") + "/r/n" + resourceLoader.GetString("FirstAccessObject4");

    Than I tryed "< br />" but in this way i can see only first line.

    body += resourceLoader.GetString("FirstAccessObject3") + "< br />" + resourceLoader.GetString("FirstAccessObject4");

    Thanks for help.


    Marco La Vecchia

    Sunday, November 3, 2013 11:35 AM

Answers

  • Hilollo75

    Try to this code below:

    body += resourceLoader.GetString("FirstAccessObject3") + “%0D%0A” + resourceLoader.GetString("FirstAccessObject4");

    You can use %0D%0A”to  replace of “/r/n”!

    Best Wishes!



    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Proposed as answer by Dave SmitsMVP Monday, November 4, 2013 7:51 AM
    • Marked as answer by Anne Jing Friday, November 8, 2013 2:23 AM
    Monday, November 4, 2013 2:01 AM

All replies

  • Hilollo75

    Try to this code below:

    body += resourceLoader.GetString("FirstAccessObject3") + “%0D%0A” + resourceLoader.GetString("FirstAccessObject4");

    You can use %0D%0A”to  replace of “/r/n”!

    Best Wishes!



    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Proposed as answer by Dave SmitsMVP Monday, November 4, 2013 7:51 AM
    • Marked as answer by Anne Jing Friday, November 8, 2013 2:23 AM
    Monday, November 4, 2013 2:01 AM
  • Thank you very much Anne, it works.

    Marco La Vecchia

    Tuesday, November 5, 2013 6:35 PM