Windows Runtime – C# Send EMail from App


I’m working on my About page for a Windows Phone Runtime app and needed to be able to send an email for feedback or support issues.

Below is the code for my event handler in the code behind (AboutPage.cs):

        async private void Image_Email(object sender, TappedRoutedEventArgs e)
            //Define email address to send to
            EmailRecipient sendTo = new EmailRecipient()
                Address = ""

            //New email and define email subject
            EmailMessage mail = new EmailMessage();
            mail.Subject = "Linux Essentials - Feedback";

            //Add addressee to email

            //Open share contact with email only
            await EmailManager.ShowComposeNewEmailAsync(mail);

The XAML on my About page is simply an image with the Tapped event:

      <Image Source="Assets/Images/Mail.png"

When defining a new email you can also specify the mail body text:

mail.Body = "this is the Body";


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s