Send
Send email
Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
post/api/v1/mailboxes/{mailboxResourceId}/send
Request
- Base URL: https://api.mail.hostinger.com
- URL: https://api.mail.hostinger.com/api/v1/mailboxes/{mailboxResourceId}/send
- Auth: HTTP bearer
Path parameters
mailboxResourceIdstring required
Resource ID of the managed mailbox the bearer token is authorized for.
Request body
Example request
{
"to": [
"recipient@example.com"
],
"displayName": "John Doe",
"cc": [
"cc@example.com"
],
"bcc": [
"bcc@example.com"
],
"subject": "Hello",
"text": "Plain body",
"html": "<p>HTML body</p>",
"attachments": [
{
"filename": "invoice.pdf",
"content": "JVBERi0xLjQK...",
"contentType": "application/pdf",
"cid": "logo",
"encoding": "base64"
}
],
"inReplyTo": {
"uid": 123,
"folder": "INBOX"
},
"forwardOf": {
"uid": 123,
"folder": "INBOX"
}
}Response
Message sent and saved to sent folder.
Changes
No recorded changes to this operation across all 1 revision of this API.