Adds media to the message.
Media to add.
Builds the message, making it ready to be sent.
Prepares a message and sends it to the conversation.
Sets the message attributes.
Message attributes.
Sets the message body.
Contents of the body.
Adds ContentTemplate SID for the message alongside optional variables. When no variables provided, the default values will be used.
Adding the content SID converts the message to a rich message. In this case, other fields are ignored and the message is sent using the content from the the ContentTemplate.
Use Client.getContentTemplates to request all available ContentTemplates.
SID of the ContentTemplate
Set the email body with a given content type.
Format of the body to set (text/plain or text/html).
Body payload in the selected format.
Set the email history with a given content type.
Format of the history to set (text/plain or text/html).
History payload in the selected format.
Sets the message subject.
Contents of the subject.
Message builder. Allows the message to be built and sent via method chaining.
Example: