MimeMessageBody Property

Get or set the body of the message.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public MimeEntity? Body { get; set; }

Property Value

MimeEntity
The body of the message.

Implements

IMimeMessageBody

Remarks

The body of the message can either be plain text or it can be a tree of MIME entities such as a text/plain MIME part and a collection of file attachments.

For a convenient way of constructing message bodies, see the BodyBuilder class.

See Also