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>"
}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>"
}Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345". #
OK