Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 332
user2087149 Avatar asked Feb 19 '13 14:02

user2087149


People also ask

Does Windows 8 have Mail app?

Getting started with mail:If you are signed in to Windows 8 with a Microsoft account, the Mail app will request to connect with that email address. Enter your account information, and then click Connect. Your inbox will appear.

How do I send an email from Windows?

Create and send an emailSelect Home > New Email. Add recipients, a subject, and a message in the email body. Select Send.


1 Answers

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.

like image 184
LewisBenge Avatar answered Sep 28 '22 04:09

LewisBenge