I want to sent an email from windows phone 8.1 app.Email Compose task not working in it. I tried this
EmailRecipient sendTo = new EmailRecipient()
{
Address = "[email protected]"
};
//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);
This gives an error in the emulator:
Can't share
There are no apps to share with.
With the Mail app, you can have all your email accounts in one single app. So there's no need to go to different websites or apps for your email.
Will my phone still work after July 11, 2017? Yes. Your Windows Phone 8.1 device should continue to work after July 11, 2017, but there will be no updates after July 11, 2017 (including security updates) and device backup functionality and other backend services will be phased out as described above.
You don't have any Email accounts in your emulator to share from that account. If you want to send an email, you should have an account right?
So go to email + accounts in Settings menu and add an account of any type in Emulator. Once you finish adding an email account, try deploying the app in the Emulator and perform the task. You should able to see Email task right now.
Since there is no email account in the emulator, "It shows no apps to share, Can't share now".
On emulator, login with your Microsoft account and try again. I solved this with login account.
You can test it on Device. Because on your Emulator, there are not any mail account at all. So when you call ShowComposeNewEmailAsync
method, it can't find any target.
Or you can add account on your Emulator in Setting -> email+account.
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