klyn.mails.MimeBodyPart.MimeBodyPart
constructor

    public MimeBodyPart(content as String = "",
    contentType as String = "text/plain; charset=UTF-8",
    transferEncoding as String = "base64"):

Description

Creates a MIME body part.

Parameters

Parameter | Description
--- | ---
`content` | Part content.
`contentType` | MIME content type.
`transferEncoding` | MIME transfer encoding.

Example

    import klyn.mails

    part = MimeBodyPart("Hello", "text/plain; charset=UTF-8")
    print(part.transferEncoding)