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
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.
Create and send an emailSelect Home > New Email. Add recipients, a subject, and a message in the email body. Select Send.
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.
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();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With