v1
latestOpenAPI 3.0.12026-07-24116117186.3 KBMessages
Send Email message
The method is used for sending an Email message to a contact. A new contact is created if no contact with such email address exists.<br><br><strong>⚠️ Not recommended for OTP passwords.</strong> This method requires the full email HTML in the request body. Because of the content volume, such requests are not logged reliably, which makes delivery troubleshooting difficult.<br>Use the <a href="https://docs.esputnik.com/reference/sendextendedpreparedmessage-1">Send prepared message</a> method instead: the caller only passes substitution variables, the template is stored on our side, so the message is sent faster and all requests are logged correctly.
post/api/v1/message/email
Request body
Example request
{
"from": "john.smith@address.com",
"subject": "Seasonal sale",
"plainText": "Explore our new collection"
}