MailMessage.BodyParts Property
MailMessageBodyParts Property
Gets all the text bodies of the message.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
public TextBodyPartCollection BodyParts { get; }

Property Value

Type: TextBodyPartCollection
A reference to the collection containing all the text parts of the message. The default value is an empty collection.

All the MIME parts of the message (except of multipart parts which are just containers of another parts) either fall into Attachments or BodyParts collections.

If ContentType of certain MIME part contains text string (for instance, it is text/plain or text/html) and this part is not attachment, this part of the message is considered to be a text part.

If you need to get the list or the hierarchy of all MIME parts of the message, use MimePartTree property.

The example is available in TextBodyPartCollection topic.
See Also