+49 69 83008980 service@xqueue.com

Benötigen Sie Hilfe?

Mailing – Add Attachment

Sie sind hier:
< Alle Themen
 

Adds an attachment to the mailing with the provided id.

POST https://api.maileon.com/1.0/mailings/:mailingid/attachments

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)
 

Attributes

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)

POST https://api.maileon.com/1.0/mailings/4345/attachments?filename=icon.ico
Authorization: Basic ...<span class="header-name">
Content-Type:</span> <span id="display">image/x-icon
</span><span class="header-name">Content-Length:</span> <span id="display">2468
</span>ICABIAEgEBAgIAEgICBoBCAgFiAgICggICAQICAgICAgIAEgICAgICAgICAgIMOEDiAgw4QOICAgICAgICAgIMO/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w792SkLDv14oH8O/Yi4lw79iLiXDv2IuJcO/Yi4lw79iLiXDv2IuJcO/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv3ZKQsO/Xigfw79iLiXDv2IuJcO/Yi4lw79iLiXDv2IuJcO/Yi4lw7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/dkpCw79eKB/Dv2IuJcO/Yi4lw79iLiXDv2IuJcO/Yi4lw79iLiXDv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7/Dv8O/w7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