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.
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
OptionalcontentVariables: ContentTemplateVariable[]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.
Message builder. Allows the message to be built and sent via method chaining.
Example: