For transactional mails (trigger mails) it is possible to set a flag called “Ignore Permission”. If this flag is set to “true”, the mail will be sent to a contact, even if the contact has no newsletter permission given. This property must only be set to mails that contain no advertisements and need to be sent in all cases, like order confirmations, invoices, and the like.
This feature is available for mails, that have been created/copied after the software update von 06.12.2019, only. If you need to change an older mail, please replace it by a copy, first.
1 |
POST https://api.maileon.com/1.0/mailings/:mailingid/settings/ignorepermission |
Response
HTTP status code | Description |
---|---|
204 No Content |
If everything was ok. |
400 Bad request |
Property or value can not be accepted |
404 Not found |
Mailing ID cannot be found |
Example
204 No Content
1 2 3 |
POST https://api.maileon.com/1.0/mailings/1234/settings/ignorepermission <ignore_permission>true</ignore_permission> 204 |
400 Bad Request
1 2 3 |
POST https://api.maileon.com/1.0/mailings/1234/settings/ignorepermission <ignore_permission>test</ignore_permission> 400: <error><message>value for key 'ignore_permission' not allowed</message></error> |
404 Not Found
1 2 3 4 |
POST https://api.maileon.com/1.0/mailings/3416/settings/ignorepermission <ignore_permission>true</ignore_permission> 404 <error><message>Mailing with id 3416 not found.</message></error> |