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*
Typestring
RequiredPattern
"[1-9][0-9]*"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
}