Sending messages
In order to send an Email message, you must have an active Email channel and perform a HTTP request to the following endpoint with a valid access key
Send a plain text email
To send a plain text email message with the above endpoint set the request body as follows:
Send a html email
To send a html email message with the above endpoint set the request body as follows. For email clients that do not support html / rich content set the plain text fallback field.
HTML metadata
Within the HTML body object you can include a metdata object as follows:
body.metadata.html.subject = set the email subject
body.metadata.emailfrom.username = set the sender before the @ e.g. support@acme.com
body.metadata.emailfrom.displayname = set the display name appearing in users inbox e.g. Support team
body.metadata.headers.reply-to = the reply-to address
As an example:
Send a html message with attachments
To send an email with attached media, ensure that your media file is either publicly available or see uploading media
Add attachment objects to body.html.attachments[]
as shown. Each attachment object has the following properties
mediaUrl = The URL location of the media
filename = The name of the file
inline = boolean (default false). See sending inline images
Send a html message with inline images
To send an email with images inline, ensure that your media file is either publicly available or see uploading media.
Add an array of attachments to body.html
as above, but set body.html.attachments[].inline
to true
Within body.html
reference the image in an image tag and prefix the filename with cid:
For example
Last updated