Tags

Hi,

It was necessary for me sending an email from a windows phone 8 application.

Here is the code:

It is possible setting the detinatary for the email from C#.

private void SendEmailWithTexts()
{
Microsoft.Phone.Tasks.EmailComposeTask ect = new Microsoft.Phone.Tasks.EmailComposeTask();
ect.Subject = "Cabecera del email";
ect.Body = "Cuerpo del email ... ";
ect.Show();
}

Is neccesary to configure at least an email account in the device. In other case it will appears a message.

For more information:

EmailComposeTask en msdn

I hope it helps.