EmailMessage.SetBodyStream(EmailMessageBodyKind, IRandomAccessStreamReference) EmailMessage.SetBodyStream(EmailMessageBodyKind, IRandomAccessStreamReference) EmailMessage.SetBodyStream(EmailMessageBodyKind, IRandomAccessStreamReference) EmailMessage.SetBodyStream(EmailMessageBodyKind, IRandomAccessStreamReference) EmailMessage.SetBodyStream(EmailMessageBodyKind, IRandomAccessStreamReference) Method

Definition

Sets the value of the specified body stream in an email message.

public : void SetBodyStream(EmailMessageBodyKind type, IRandomAccessStreamReference stream)
void SetBodyStream(EmailMessageBodyKind type, IRandomAccessStreamReference stream) const;
public void SetBodyStream(EmailMessageBodyKind type, IRandomAccessStreamReference stream)
Public Sub SetBodyStream(type As EmailMessageBodyKind, stream As IRandomAccessStreamReference)
emailMessage.setBodyStream(type, stream);

Parameters

type
EmailMessageBodyKind EmailMessageBodyKind EmailMessageBodyKind

Indicates which body stream, plain text or HTML.

stream
IRandomAccessStreamReference IRandomAccessStreamReference IRandomAccessStreamReference

The message for the specified body stream.

Note

The EmailManager.ShowComposeNewEmailAsync, and EmailManagerForUser.ShowComposeNewEmailAsync methods won't recognize an HTML formatted body. You can only use those methods to send email in plain text.

Additional features and requirements

Capabilities
emailSystem email