WP8.1 发送邮件

扫码查看

Method 1:

Windows.System.Launcher.LaunchUriAsync(new Uri("abc@outlook.com?subject=hello world&body=world"));

Reference: http://dotnet.dzone.com/articles/how-send-mail-your-windows

Method2:

EmailRecipient sendTo = new EmailRecipient()

{

Address = "abc@outlook.com"

};

EmailMessage mail = new EmailMessage();

mail.Subject = "google";

mail.Body = "\n\n\nmail body";

mail.To.Add(sendTo);

mail.CC.Add(sendTo);

await EmailManager.ShowComposeNewEmailAsync(mail);

05-11 19:50
查看更多