我想从Windows Phone 8.1应用程序发送电子邮件。但是,Email Compose任务在其中无法工作。 我尝试了以下方法:
EmailRecipient sendTo = new EmailRecipient()
{
Address = "abc@outlook.com"
};
//generate mail object
EmailMessage mail = new EmailMessage();
mail.Subject = "Feedback";
//add recipients to the mail object
mail.To.Add(sendTo);
//mail.Bcc.Add(sendTo);
//mail.CC.Add(sendTo);
//open the share contract with Mail only:
await EmailManager.ShowComposeNewEmailAsync(mail);
在模拟器中会出现以下错误:
无法分享
没有可分享的应用程序。