vertx / io.vertx.ext.mail.mailencoder / MailEncoder

# MailEncoder

`open class MailEncoder`

create MIME mail messages from a MailMessage object

example usage is:

    MailMessage = new MailMessage(); (set elements and attachments ...) String message = new MailEncoder(mailmessage).encode();

usually you are not using this class directly, rather it will be used by `sendMail()` in MailClientImpl

Author
Alexander Lehmann

### Constructors

<init> | `MailEncoder(message: MailMessage, hostname: String)` create a MailEncoder for the message The class will probably get a few setters for optional features of the SMTP protocol later e.g. 8BIT or SMTPUTF (this is not yet supported)

### Functions

encode | `open fun encode(): String` encode the MailMessage to a String
getMessageID | `open fun getMessageID(): String`