Skip to content

Sends an email from a mailbox.​

POST
/api/mailboxes/{mailboxId}/mails

Authorizations​

api_key

Requests manipulating data need to supply a CSRF token

TypeAPI Key (header: X-CSRF-Token)

Parameters​

Path Parameters

mailboxId*
Typeinteger
Required
Minimum1

Request Body​

application/json
JSON
{
"subject": "Testbetreff",
"body": "Inhalt der Email",
"attachments": [
{
"uuid": "uuid",
"filename": "Testdatei.jpg"
}
],
"replyEmailId": 0
}

Responses​

Success.

application/json
JSON
{
"id": -1,
"mailboxId": -1,
"mailboxFolder": -1,
"from": {
"mailbox": "string",
"hostname": null,
"name": null,
"address": "string"
},
"time": "string",
"subject": "",
"body": "string",
"bodyHtml": "string",
"isRead": false,
"isAnswered": false
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​

cURL
JavaScript
PHP
Python