Basic Attachment
Attach files using base64-encoded content:Multiple Attachments
Inline Images
Embed images directly in your email HTML:Attachment Limits
Attachments vs. Download Links
Not every file belongs as an attachment. Consider which approach fits your use case:
Use attachments for: invoices, receipts, tickets, and small documents the recipient needs to keep.
Use download links for: large reports, media files, archives, and files that should expire after a set period.
Attachment Format
Attachments are included as base64-encoded content in the API request. Each attachment requires three fields:name— The filename the recipient will see (max 255 characters)data— The file content encoded as base64 (must not contain\r\ncharacters)type— The MIME type of the file