EmailComposeTask.Body Property

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

Gets or sets the body 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 Body As String
public string Body { get; set; }
<object Body="string" .../>

Property Value

Type: System..::.String
Type: String. The body of the new email message.

Remarks

The Body property does not support HTML formatting. If the content assigned to the Body property happens to work with the codepage that maps to the current locale settings for the device, it will be sent using that codepage.  If the codepage mapped to the current locale setting cannot render the content, UTF-8 encoding will be used. 

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