Attachments
Attach files, or embed images in the HTML.
Up to 10 files, 10 MB together, as attachments: [{ filename, content }] where content is the file in base64. content_type is guessed from the file name when you leave it out, and may carry parameters (text/plain; charset=utf-8).
An attachment
"attachments": [
{ "filename": "invoice.pdf", "content": "JVBERi0xLjcK…" }
]Inline images
Give the attachment a content_id and use <img src="cid:…"> in the HTML.
What is refused
Executable file types (.exe, .js, .bat, .jar, .iso, .dmg and the like), because mail providers reject them, and file names that end in a dot or a space or contain invisible or text-direction characters. Sizes are in MiB: 10 MB means 10,485,760 bytes of files.