+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 Sender Address

Sie sind hier:
Sets the sender address of the mailing with the provided id. Please note that the domain,/ i.e. the part after the @, must be in the list of valid domains for that account. If the domain is not configured in Maileon any you are trying trying to set it, an error (400) will be thrown, see example 2. Also note: specifying the domain for the sender also changes the subdomain used for the mailing, i.e. all tracking and image links will be routed using that domain.Valid are values with a minimum length of 1 character and a maximum length of 64 characters and consist of ASCII characters only ( = [\x00-\x7f]). Whitespaces are e.g. forbidden.

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

Example 1

POST https://api.maileon.com/1.0/mailings/1/contents/sender
Content-type: application/vnd.maileon.api+xml
Accept: application/vnd.maileon.api+xml; charset=utf-8
Authorization: [XXX]

<?xml version="1.0" encoding="UTF-8"?>
<sender>test123</sender>

Status: 200 OK

Example 2

POST https://api.maileon.com/1.0/mailings/1/contents/sender
Content-type: application/vnd.maileon.api+xml
Accept: application/vnd.maileon.api+xml; charset=utf-8
Authorization: [XXX]

<?xml version="1.0" encoding="UTF-8"?>
<sender>test123@test.de</sender>

Status: 400 Bad Request
Content-Type: application/vnd.maileon.api+xml
<?xml version="1.0" encoding="UTF-8"?>

<error>
  <message>The domain 'test.de' does not exist in your Maileon account. Use a valid domain.</message>
</error>
Inhaltsverzeichnis