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

Type
API Key (header: X-CSRF-Token)

Parameters​

Path Parameters

mailboxId*
Type
integer
Required
Minimum
1

Request Body​

application/json
JSON
{
  
"subject": "Testbetreff",
  
"body": "Inhalt der Email",
  
"attachments": [
  
],
  
"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​