mailpit unofficial
POST/api/v1/message/{ID}/release

Release message

Release a message via a pre-configured external SMTP server. This is only enabled if message relaying has been configured.

The ID can be set to latest to reference the latest message.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 1 body field
IDstringrequired
Message database ID
Toarray<string>required
Array of email addresses to relay the message to

3 status codes
200Plain text "ok" response
400Server error will return with a 400 status code with the error message in the body
404Not found error will return a 404 status code

Error handling

A 400 is returned: Server error will return with a 400 status code with the error message in the body. A 404 is returned: Not found error will return a 404 status code.