Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you send an e-mail from Windows Phone 7?

What's the function for sending e-mails from WP7? I'm trying to set up a button to send feedback e-mail, but I can't find the right function.

Thanks,

Zain

like image 973
Zain Rizvi Avatar asked Mar 06 '11 08:03

Zain Rizvi


People also ask

Does Windows 7 have mail?

The easiest way to enable Windows Mail in Windows 7 is if you have access to a Vista machine. If not, see the links at the bottom. On the Win7 machine, find the "Windows Mail" folder in Program Files.

How do I send emails from my laptop Windows 7?

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

How do I set up email recipients in Windows 7?

In Windows Mail, go to the Tools menu and click on Accounts.... Click on the Add button in the upper right. In the Select Account Type window, double-click on E-mail Account. In the Your Name window, type in the name you want your recipients to see when they receive your e-mails, then click on Next.


1 Answers

Found it. You need to use the EmailComposeTask class. Here's a sample:

using Microsoft.Phone.Tasks;

...

void SendEmail(){
  EmailComposeTask email = new EmailComposeTask();
  email.To = "[email protected]";
  email.Subject = "hey";
  email.Body = "Wazaaaaaaaaaaap! How you doin?";
  email.Show();   
}
like image 78
Zain Rizvi Avatar answered Nov 15 '22 11:11

Zain Rizvi