Sends An email through one of your mail orders allowing additional options such as file attachments, cc, bcc, etc.
Sends An email through one of your mail orders allowing additional options such as file attachments, cc, bcc, etc.
Body
Required
-
The subject or title of the email
-
The main email contents.
-
An email contact.
-
A list of destionation email addresses to send this to
An email contact.
-
(optional) A list of email addresses that specify where replies to the email should be sent instead of the from address.
An email contact.
-
(optional) A list of email addresses to carbon copy this message to. They are listed on the email and anyone getting the email can see this full list of Contacts who received the email as well.
An email contact.
-
(optional) list of email addresses that should receive copies of the email. They are hidden on the email and anyone gettitng the email would not see the other people getting the email in this list.
An email contact.
-
(optional) File attachments to include in the email. The file contents must be base64 encoded!
(optional) File attachments to include in the email. The file contents must be base64
-
(optional) ID of the Mail order within our system to use as the Mail Account.
Body
Required
-
The subject or title of the email
-
The main email contents.
-
An email contact.
-
A list of destionation email addresses to send this to
An email contact.
-
(optional) A list of email addresses that specify where replies to the email should be sent instead of the from address.
An email contact.
-
(optional) A list of email addresses to carbon copy this message to. They are listed on the email and anyone getting the email can see this full list of Contacts who received the email as well.
An email contact.
-
(optional) list of email addresses that should receive copies of the email. They are hidden on the email and anyone gettitng the email would not see the other people getting the email in this list.
An email contact.
-
(optional) File attachments to include in the email. The file contents must be base64 encoded!
(optional) File attachments to include in the email. The file contents must be base64
-
(optional) ID of the Mail order within our system to use as the Mail Account.
curl \
--request POST 'https://my.interserver.net/apiv2/mail/{id}/advsend' \
--header "X-API-KEY: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"id":66,"to":[{"name":"Mr Client","email":"someone@client.com"}],"body":"Hello","from":{"email":"user@domain.com"},"subject":"Welcome","attachments":[{"data":"base64_encoded_contents","filename":"message.txt"}]}'
curl \
--request POST 'https://my.interserver.net/apiv2/mail/{id}/advsend' \
--header "X-API-KEY: $API_KEY" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'id=66&to=%7B%22name%22+%3D%3E+%22Mr+Client%22%2C+%22email%22+%3D%3E+%22someone%40client.com%22%7D&body=Hello&from=%7B%22email%22+%3D%3E+%22user%40domain.com%22%7D&subject=Welcome&attachments=%7B%22data%22+%3D%3E+%22base64_encoded_contents%22%2C+%22filename%22+%3D%3E+%22message.txt%22%7D'
{
"id": 66,
"to": [
{
"name": "Mr Client",
"email": "someone@client.com"
}
],
"body": "Hello",
"from": {
"email": "user@domain.com"
},
"subject": "Welcome",
"attachments": [
{
"data": "base64_encoded_contents",
"filename": "message.txt"
}
]
}
{"id" => 66, "to" => [{"name" => "Mr Client", "email" => "someone@client.com"}], "body" => "Hello", "from" => {"email" => "user@domain.com"}, "subject" => "Welcome", "attachments" => [{"data" => "base64_encoded_contents", "filename" => "message.txt"}]}
{
"text": "The command completed successfully.",
"status": "ok"
}
{
"code": "string",
"message": "string"
}
{
"code": "string",
"message": "string"
}
{
"code": "string",
"message": "string"
}