EmailComposeTask.To Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the recipients on the To line of the new email message.

Namespace: Microsoft.Phone.Tasks
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

Public Property To As String
public string To { get; set; }
<object To="string" .../>

Property Value

Type: System..::.String
Type: String. The recipients on the To line of the new email message.

Remarks

This property follows the RFC specification for email addresses. Do not use a comma to delimit multiple addresses. The following are some examples of properly formatted addresses.

“Display Name” <username@domain.com>
username@domain.com
“Display Name1” <username1@domain.com>; “Display Name 2” <username2@domain.com>
username1@domain.com; username2@domain.com; username3@domain.com

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

EmailComposeTask Class

Microsoft.Phone.Tasks Namespace

Other Resources

Launchers and Choosers for Windows Phone 8

How to use the email compose task for Windows Phone 8