How do I send an email from a Windows Phone 8 application?

user2087149 picture user2087149 · Feb 19, 2013 · Viewed 9.4k times · Source

In a Windows Forms project, I used the SmtpClient and MailMessage class in order to send information by email.

Is there an equivalent for Windows Phone 8?

Answer

LewisBenge picture LewisBenge · Feb 20, 2013

You can use Microsoft.Phone.Tasks.EmailComposeTask to compose an e-mail using the inbuilt mail client:

  var task = new EmailComposeTask {To = email};
  task.Show();

Alternately you can post data to a 3rd party service, such as SendGrid to send the e-mail via an API.

There are no SMTP APIs available on Windows Phone.