Reputation: 6577
I'm trying to create a hyper link in my windows phone XAML and code behind. Below is my code, but when I try this in my phone emulator, I get the below error:
"Can't send - Make sure you've set up an account and try again."
Will the below work on my actual phone?
XAML:
<HyperlinkButton
Content="Click to Email"
Click="Hyperlink_Click"
/>
CodeBehind:
EmailComposeTask email = new EmailComposeTask();
email.Subject = "Subject";
email.To = "[email protected]";
email.Show();
Upvotes: 0
Views: 36
Reputation: 9444
As mentioned in the msdn article, it seems that the Emulator
doesn't work properly with the Email Compose Task
. So better if you could test it in your device!
Upvotes: 1