MailBee.NET Objects 4.0

TextBodyPart Class

Represents a text body of the message.

For a list of all members of this type, see TextBodyPart Members.

System.Object
   MailBee.Mime.TextBodyPart

public class TextBodyPart

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The MIME parts of the message can include text parts and attachments.

A MIME part is considered to be a text part if its ContentType starts with text/ and this part is not attachment. For instance, MIME parts of the following content types are text parts:

To get plain-text body of the message, use BodyPlainText property. To get HTML body, use BodyHtmlText property.

To access all the text parts (in the case if you need specific part, such as XML body if any), use BodyParts property.

Example

The example is available in TextBodyPartCollection topic.

Requirements

Namespace: MailBee.Mime

Assembly: MailBee.NET (in MailBee.NET.dll)

See Also

TextBodyPart Members | MailBee.Mime Namespace | Attachment | MimePart