Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send email from windows phone 8.1

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.

like image 475
Ghazanfar Khan Avatar asked Jul 18 '14 02:07

Ghazanfar Khan


People also ask

Does Windows 8.1 have an email program?

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.

Is Windows 8.1 Mobile still supported?

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.


3 Answers

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".

like image 120
Balasubramani M Avatar answered Oct 03 '22 08:10

Balasubramani M


On emulator, login with your Microsoft account and try again. I solved this with login account.

like image 43
Metehan Toksoy Avatar answered Oct 03 '22 08:10

Metehan Toksoy


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.

like image 31
Chris Shao Avatar answered Oct 03 '22 08:10

Chris Shao