Skip to main content

Send email

POST 

/message-server/email/send

Sends an email to one recipient.

  • Marketing and transactional emails: set type. A marketing email needs the recipient's marketing consent and an unsubscribe link.
  • Placeholders: insert {name} in the subject or the body and fill the placeholders map.
  • Tracking: opens and clicks, at the level set in tracking and allowed by the recipient's consent.
  • Scheduling: set scheduledDate to send later.
  • Dry run: set simulation: true to validate the request without sending.
  • Consents: the request reads the recipient's consents on your contacts and records new ones there, creating the contact when needed, also in a dry run. See consents.

A 202 does not mean the email was accepted. A request that passes validation is answered 202 also when the email is rejected: check results.email.accepted and, if it is false, results.email.reasons.

Request​

Responses​

Request accepted. Check results.email.accepted to see whether the email was accepted.

  • accepted: true means the email was accepted for sending, not that it was delivered: email has no delivery notifications yet.
  • reasons is present only when the email is rejected.