HomeWindowsHow to Save a Email Address in Windows Phone 7 using C# ?

How to Save a Email Address in Windows Phone 7 using C# ?

Saving a Email Address is as similar as that of Saving a Phone Number in Windows Phone 7.

If you used the SavePhoneNumberTask to save the phone number , then we have SaveEmailAddressTask to save the Email Address .

How to Save a Email Address in Windows Phone 7 using C# ?

The SaveEmailAddressTask has the property Email which enables the user to set the email address .

private void button1_Click(object sender, RoutedEventArgs e)
{
     SaveEmailAddressTask saveEmailLauncher = new SaveEmailAddressTask();
     saveEmailLauncher.Completed += new EventHandler<TaskEventArgs>(saveEmailLauncher_Completed);
     saveEmailLauncher.Email = "[email protected]";
     saveEmailLauncher.Show();
}

void saveEmailLauncher_Completed(object sender, TaskEventArgs e)
{
     if (e.TaskResult==TaskResult.OK)
     {
          MessageBox.Show("Email Address saved");
     }
}

When the Show Method is called , the contacts applications is opened where the user can include the email address to the new Contact or add it to the existing contact .

How to Save a Email Address in Windows Phone 7 using C# ?

    1 Comment

Leave a Reply

You May Also Like

This blog post will guide you through several effective methods to troubleshoot and resolve the issue of Microsoft Edge not...
Windows 11 offers a range of audio enhancements that can enrich your listening experience. These enhancements include features like virtual...
Windows 11 brings a fresh and visually stunning design to your desktop, and one of the standout features is the...