POST
Mailer sendMailer sendEmailsSend an email
POST
https://api.lowcodeapi.com/mailersend/v1/email
Request Body
Content Type : application/json
Request Parameters
fromobject
Not required if template_id is present and template has default sender set
toobject
The name of the recipient
ccobject
The name of the CC recipient
bccobject
The name of the BCC recipient
reply_tostring
Reply to
subjectstring
Not required if template_id is present and template has default subject set
textstring
Email represented in a text (text/plain) format
htmlstring
Email represented in HTML (text/html) format.
attachmentsobject
Base64 encoded content of the attachment
template_idstring
Base64 encoded content of the attachment
tagsstring
Limit is max 5 tags
personalizationobject
Allows using personalization in {{var}} syntax
precedence_bulkboolean
This parameter will override domain's advanced settings
send_atnumber
Has to be a Unix timestamp
in_reply_tostring
Alphanumeric which can contain _, -, @ and .
settingsobject
Settings
headersobject
this feature is available to Enterprise accounts only
Overview

Send an asynchronous email

API Reference Link
https://developers.mailersend.com/api/v1/email.html#send-an-email
Response
API response data will be shown here once the request is completed.
Snippet
cURL
curl -X POST \
 'https://api.lowcodeapi.com/mailersend/v1/email' \
 -H 'Cache-Control: no-cache' \
 -H 'Content-Type: application/json' --data-raw '{
  "from": {
    "email": "",
    "name": ""
  },
  "to": [
    {
      "email": "",
      "name": ""
    }
  ],
  "cc": [
    {
      "email": "",
      "name": ""
    }
  ],
  "bcc": [
    {
      "email": "",
      "name": ""
    }
  ],
  "reply_to": {
    "email": "",
    "name": ""
  },
  "subject": "",
  "text": "",
  "html": "",
  "attachments": {},
  "template_id": "",
  "tags": "",
  "personalization": [
    {
      "email": ""
    }
  ],
  "precedence_bulk": "",
  "send_at": "",
  "in_reply_to": "",
  "settings": {},
  "headers": {}
}'
© 2024LowCodeAPI

Last Updated : 2024-12-16 14:03 +00:00