How to send email in Windows Phone 8 Application Programatically using C#?

The Windows Phone 8 SDK provides the EmailComposeTask which can be used to send email in Windows Phone 8 Programatically.

The EmailComposeTask launches the Email Compose screen which lets the user to verify the email content and tap on the “send” button to send email.

How to send email in Windows Phone 8 Application Programatically using C#?

Below is a sample code snippet that demonstrates the sending of email in Windows Phone 8 application.

EmailComposeTask task = new EmailComposeTask();
task.To = "[email protected]";
task.Body = "This is a test message from abundantcode.com";
task.Show();
%d bloggers like this: