Send an Email with content entered into text fields. C#. Windows Store Apps RRS feed

  • Question

  • Hi

    I have several text fields (text boxes) that the user completes in the app. How would I go about having these values populated into an email and then sent to a predetermined email address?

    Say you have the Name, email address of the user et al.


    voidsubmit(objectsender, TappedRoutedEventArgse)








    varmailto =newSystem.Uri("mailto:?to=mail@outlook.com&subject=Request&body");




    The Above code works, but I need the information that was entered into the text boxes to be included in this mail.

    Is there any way to do this?

    • Edited by DreyerSmit Thursday, May 22, 2014 10:20 PM
    Thursday, May 22, 2014 9:55 PM


  • As far as I know, Windows Store Apps do not have capability of sending emails programmatically. It's up to a user of the app to decide who will be a recipient of an email.

    If you want your app to send an email you can share a piece of text or an image in the DataRequested event handler of the DataTransferManager instance. The shared data will be inserted into an email when a user decides to send it somewhere.

    Wiki: wbswiki.com
    Website: www.wisenheimerbrainstorm.com

    Thursday, May 22, 2014 10:19 PM