Adds media to the message.
Media to add.
Builds the message, making it ready to be sent.
Sets the message attributes.
Message attributes.
Sets the message body.
Contents of the body.
Set email body with given MIME-type.
Format of the body to set (text/plain or text/html).
Body payload in selected format.
Set email history with given MIME-type.
Format of the history to set (text/plain or text/html).
History payload in selected format.
Sets the message subject.
Contents of the subject.
Message builder. Allows the message to be built and sent via method chaining.
Example: