+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 – Send Testmail to Single Emailaddress

Sie sind hier:
API version 1.0.0
Sends a testmailing for the mailing with the provided id to a given email address. If the email address does not exist within your contacts, the personalization is done according to your default personalization user configured in Maileon.

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

Attributes

Parameter Default Description
email The email the testmail should be sent to.
format auto The format to send the testmail in. Valid values are ‚auto‘ (=multipart), ‚text‘, or ‚html‘
txAuto false If true, will provide a transaction as required by the email, with all fields set to „?“. Note the value „?“ will fail on certain transaction attribute types (e.g. boolean)
body If a body is provided, the parameter txAuto is not true and the Content-Type Header is „application/json“, the body is treated as a transaction to fill out fields in the email. this body must represent a json object on the top level.

If the Content-Type Header is anything but „application/json“, existence of body will be ignored completely

Response

HTTP status code Description
200 OK If everything was ok.
400 Bad Request If the given email address is invalid, e.g. contains no @
400 Bad Request If a body was provided with Content-Type: „application/json“ and txAuto == false and the body is not a Json Object or the backend cannot successfully fill the required transaction fields and render the email from the body provided.

Example

POST https://api.maileon.com/1.0/mailings/1/sendtestemail?email=max.mustermann@xqueue.com
Authorization: [XXX]

Status: 200 OK
Inhaltsverzeichnis