POST /mail/{id}/send

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.

Path parameters

  • id integer Required

    Mail ID number

Body Required

  • to string Required

    The Contact whom is the primary recipient of this email.

  • from string Required

    The contact whom is the this email is from.

  • subject string Required

    The subject or title of the email

  • body string Required

    The main email contents.

Body Required

  • to string Required

    The Contact whom is the primary recipient of this email.

  • from string Required

    The contact whom is the this email is from.

  • subject string Required

    The subject or title of the email

  • body string Required

    The main email contents.

Responses

  • 200 application/json

    search results matching criteria

    Hide response attributes Show response attributes object
    • status string Required
    • text string Required
  • 400 application/json

    The specified resource was not found

    Hide response attributes Show response attributes object
    • code string Required
    • message string Required
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code string Required
    • message string Required
  • 404 application/json

    The specified resource was not found

    Hide response attributes Show response attributes object
    • code string Required
    • message string Required
POST /mail/{id}/send
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"
}