Attaching files to emails
The Naxai Email API allows you to include file attachments in your email requests. To ensure proper processing, files must be Base64-encoded, and both the file extension and content type should align with the supported formats listed below.
Usage guidelines
- Multiple attachments can be included in a single email.
- The combined size of the email body and attachments must not exceed 25MB.
- Each attachment must be 20MB or smaller.
- The total size of all attachments combined must be 20MB or less.
Supported file formats
To attach files, use the following file extensions and corresponding content types:
File extension(s) | Content type |
---|---|
application/pdf | |
pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation |
xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document |
gzip, gz | application/x-gzip |
zip | application/zip |
au, snd | audio/basic |
flac | audio/flac |
mid, rmi | audio/mid |
m4a | audio/mp4 |
mp3 | audio/mpeg |
oga, ogg | audio/ogg |
aif, aifc, aiff | audio/x-aiff |
wav | audio/x-wav |
gif | image/gif |
jpeg, jpg, jpe | image/jpeg |
tiff, tif | image/tiff |
wbmp | image/vnd.wap.wbmp |
bmp | image/x-ms-bmp |
ics | text/calendar |
csv | text/comma-separated-values |
css | text/css |
html | text/html |
asc, c, diff, log, patch, pot, text, txt | text/plain |
vcf | text/x-vcard |
mp4 | video/mp4 |
mpeg, mpg, mpe | video/mpeg |
ogv | video/ogg |
qt, mov | video/quicktime |
avi | video/x-msvideo |
Updated 6 days ago