Reputation: 2407
I am starting windows phone 7 programming. For one of my program I need to send email. For example I want to send email using google. For desktop application is can do it. For Windows Phone 7 I found EmailComposeTask term for related on this. But I don't know how to login or sending email using this. I find some code in net but those are not working also. Here is the code:
EmailComposeTask emailcomposer = new EmailComposeTask();
emailcomposer.To"<a href="mailto:[email protected]">[email protected]</a>";
emailcomposer.Subject = "subject from test app";
emailcomposer.Body = "This is a test mail from Email Composer";
emailcomposer.Show();
But here from which email client the mail is send? What will be the solution?
Upvotes: 0
Views: 886
Reputation: 463
You are actually facing problems because the emulator is feature locked. This question is a repeat of: How to setup email account on Windows Phone 7 emulator? .
Upvotes: 0
Reputation: 2551
i find some code in net but those are not working also.here is the code.........but here from which email client the mail is send?
The phone would launch the installed email client. I would assume if Windows Phone is anything like Android this would depend on which application the user selected as the default.
Have you actually ran this code to see what it does. What you are trying to do is not 100% clear. What you have right now would simply offer the user to send an email likely using THEIR system email account, certainly would not use your google mail account, or even be guaranteed to use a google account.
Upvotes: 1