Skip to main content
POST
/
api
/
v1
/
mails
/
{mailServerID}
/
messages
send a mail
curl --request POST \
  --url https://mail-service.iran.liara.ir/api/v1/mails/{mailServerID}/messages \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "subject": "<string>",
  "to": "<string>",
  "from": "<string>",
  "html": "<string>",
  "text": "<string>",
  "replyTo": "<string>",
  "attachments": [
    {
      "name": "<string>",
      "content_type": "<string>",
      "data": "<string>"
    }
  ]
}
'
{
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345". #

Path Parameters

mailServerID
string
required

Body

application/json
subject
string
required
to
string
required
from
string
required
html
string
text
string
replyTo
string
attachments
object[]
Maximum array length: 10

Response

OK

status
string