Adds an attachment to the mailing with the provided id.

The following requirements must be met:

  • The mailing is not sealed
  • The mime type of the attachment should be set as Content-Type header
  • The content in the body must be base64 encoded
  • The header Content-Length must be set correctly
  • The size of the attachment does not exceed the max allowed attachment size
  • The total count of attachments in the mailing does not exceed 10 (including the new one)


Parameter Default Description
filename Filename of the attachment to be displayed in sent emails. It is recommended to keep the filename short and to use an extension corresponding to the mime type of the attachment.


Example 1

If you want to send the XQ favicon for example you can use the following call (the content is the base64 encoded version of the image)

Example 2