Until now, all transactional messages sent through the Mailsac API only allowed text. With the latest release, the API supports HTML and attachments. Additionally supported is sending an entire raw SMTP message over the REST API.
New Transactional Email Fields
You can provide full HTML in the
html field when doing a
POST /api/outgoing-messages. This was not possible in previous versions of the API.
Attachments can be sent and linked into the
html by including an array of attachment objects in the
Example Inline Attachment
Example Attached File
"cid": "[email protected]",
"contentDisposition": "inline; filename=2561a.jpg",
received headers is now possible – send a single string or array of
received headers. This allows you to receive SMTP in your application, pre-parse it, and pass along
Raw SMTP over HTTP
If you want to test SMTP parsing or have an application that generates raw SMTP messages, put the entire SMTP contents into the
raw field when doing a
Mailsac will parse the headers, text, HTML, and attachments, then deliver it for you.
All other fields will be ignored when you send a
Read the API docs for sending transactional emails over HTTP