post https://emailapi.routee.net/smtp/emails
Send an email
ParamName | Required | Description |
---|---|---|
html | You can use parameter html and text for sending template directly in this request. or you can use a parameter template and send static template uploaded to email service and send only values for these variables (which were added in template) | HTML version of the email, encoded in base64 |
text | You can use parameter html and text for sending template directly in this request. or you can use a parameter template and send static template uploaded to email service and send only values for these variables (which were added in template) | Text version of the email |
template | You can use parameter html and text for sending template directly in this request. or you can use a parameter template and send static template uploaded to email service and send only values for these variables (which were added in template) | |
template.id | You can use parameter html and text for sending template directly in this request. or you can use a parameter template and send static template uploaded to email service and send only values for these variables (which were added in template) | ID of the template uploaded in the service. Use this method to get the template ID (use either real_id or id parameter from the reply) |
template.variables | You can use parameter html and text for sending template directly in this request. or you can use a parameter template and send static template uploaded to email service and send only values for these variables (which were added in template) | includes variables' names and values in such a format: variables: {"name of the variable in the template": "value of the variable for this email"} |
subject | true | Email subject |
from | true | An array containing the sender’s name and email address |
to | true | An array of recipients |
attachments | false | An array in which the key is the name of the file, and the value is the contents of the file (optional) |
attachments_binary | false | An array in which the key is the name of the file, and the value is the contents of the file, encoded in base64 (optional) |