Sends an email through one of your mail orders.
Note: If you want to send to multiple recipients or use file attachments use the advsend (Advanced Send) call instead.
application/json
POST
/mail/{id}/send
cURL (application/json)
curl \
--request POST 'https://my.interserver.net/apiv2/mail/{id}/send' \
--header "X-API-KEY: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"to":"johndoe@company.com","from":"janedoe@company.com","subject":"Attention Client","body":"This is an email to inform you that something noteworthy happened."}'
curl \
--request POST 'https://my.interserver.net/apiv2/mail/{id}/send' \
--header "X-API-KEY: $API_KEY" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'to=johndoe%40company.com&from=janedoe%40company.com&subject=Attention+Client&body=This+is+an+email+to+inform+you+that+something+noteworthy+happened.'
Request examples
{
"to": "johndoe@company.com",
"from": "janedoe@company.com",
"subject": "Attention Client",
"body": "This is an email to inform you that something noteworthy happened."
}
Response examples (200)
{
"text": "The command completed successfully.",
"status": "ok"
}
Response examples (400)
{
"code": "string",
"message": "string"
}
Response examples (401)
{
"code": "string",
"message": "string"
}
Response examples (404)
{
"code": "string",
"message": "string"
}