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?
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.
Create and send an emailSelect Home > New Email. Add recipients, a subject, and a message in the email body. Select Send.
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.
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