+49 69 83008980 service@xqueue.com
Benötigen Sie Hilfe?

Im Maileon Help-Center finden Sie umfassende Dokumentationen zu unserem System.

Beliebte Suchanfragen: Importe | Rest-API | Integrationen | SMS

Mailing – Set Html

Sie sind hier:
While this method works for mailings created with the v1 and new v2 mailing editor, the parameters doImageGrabbing and doLinkTracking are only working with mailings for editor v1. Mailings created with the new mailing editor v2 are currently not supporting those parameters. Support will be added with the one of the next releasees.
Sets the html content of the mailing with the provided id. Note that the mailing should not be sealed. This call also creates a raw html template for the mailing so that it can still be edited later in the graphical user interface.
Warning: in case you provide no parameter (or true) for doImageGrabbing and you provide links to none-existing images, Maileon tries resolving the images in order to cache them. Depending on your server this process can run into timeouts for every image and the call can take unexpectedly long, resulting in a timeout in the calling script. Make sure all image urls are valid.
Hint: If you wish to send text-only-mails, you will have to set a simple space character (” “) as HTML content. Maileon will then send a mail with header “Content-Type: text/plain; charset=utf-8”.

POST https://api.maileon.com/1.0/mailings/:mailingid/contents/html


Parameter Default Description
doImageGrabbing true If true, referenced images in the html content will be persistent in Maileon so that they no longer need to be available under the original URL. Note that this only applies to images respecting the pattern <img src=http://…“ …/>“
doLinkTracking false If this is true, links will be changed to make them trackable, if false, links will not be changed.
preserveText false If set to true, the text version will not be resetted when this method is called. If not set or false, the text version will be cleared.


POST https://api.maileon.com/1.0/mailings/4318/contents/html
Content-Type: text/html

  <body>hello world</body>
Status: 204 No Content
Content-Length: 0