Add an attachment to a transactional email

Sending transactional emails relies on the relationship between your recipients and your business. These emails help your recipients, and so should your attachments. For example, when a customer books a room at your hotel, you could attach a brochure to highlight the services you offer in your confirmation email.

There are two options to add an attachment to a transactional email:

Good to know

Add an attachment to your email template

There are technical limitations to adding an attachment to your email template:

👤 Recipients

If you add an attachment to your email template, you can only send your transactional email to a maximum of 99 recipients.

📏 Size

The size limit for transactional emails is 20MB, including the attachment and email content.

If your transactional email exceeds this size limit, we recommend hosting your file elsewhere, providing public access to the hosted file, and sharing the link to it in your email template. Doing so would ensure that your link is valid and that your file can be downloaded by the recipients.

📄 Extensions

Allowed extensions for attachment files: ics, xlsx, xls, ods, docx, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, msg, pub, mobi, ppt, pptx, eps.

To attach a file to your email template:

  1. At the Setup step of your email template, click Show Advanced Options.
  2. Select a file in the Add an attachment field.

add-attachment-transactional.png

Include an attachment in your API script

There are technical limitations to including an attachment in your API script:

👤 Recipients

If you add an attachment in your API script, you can only send your transactional email to a maximum of 99 recipients.

📏 Size

The size limit for transactional emails is 20MB, including the attachments and email content.

📄 Extensions

Allowed extensions for attachment files: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg, wmv, pkpass and xlsm.

Using our API, you can either include files you are hosting or the base64 content of the attachment in your API script. To learn more, check our dedicated API documentation.

💡 Good to know
You can include multiple files if you use the API to add an attachment to an email template.

🤔 Have a question?

If you have a question, feel free to contact our support team by creating a ticket from your account. If you don't have an account yet, you can contact us here.

If you’re looking for help with a project using Brevo, we can match you with the right certified Brevo expert partner.

💬 Was this article helpful?

19 out of 75 found this helpful