gray laptop computer showing html codes in shallow focus photography

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

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...