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
pdfapplication/pdf
pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation
xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
gzip, gzapplication/x-gzip
zipapplication/zip
au, sndaudio/basic
flacaudio/flac
mid, rmiaudio/mid
m4aaudio/mp4
mp3audio/mpeg
oga, oggaudio/ogg
aif, aifc, aiffaudio/x-aiff
wavaudio/x-wav
gifimage/gif
jpeg, jpg, jpeimage/jpeg
tiff, tifimage/tiff
wbmpimage/vnd.wap.wbmp
bmpimage/x-ms-bmp
icstext/calendar
csvtext/comma-separated-values
csstext/css
htmltext/html
asc, c, diff, log, patch, pot, text, txttext/plain
vcftext/x-vcard
mp4video/mp4
mpeg, mpg, mpevideo/mpeg
ogvvideo/ogg
qt, movvideo/quicktime
avivideo/x-msvideo