# Send transactional email (without template)
# HTTP method: POST
https://api.sender.net/v2/message/send
Send a fully custom transactional email without using a predefined template. You can define all content manually, including subject, HTML, text, variables, headers, and attachments.
from object required
Sender object containing 'email' and 'name'. Both fields are required.
to object required
Recipient object containing 'email' (required) and optional 'name'. This replaces 'recipient_email', which is still supported for backward compatibility.
recipient_email string
Deprecated. Use the 'to' object instead. Retained for backward compatibility.
subject string required
Subject line of the email.
text string
Plain-text version of the email body.
html string
HTML version of the email body.
headers object
Optional headers to include (e.g., custom X- headers or charset).
variables object
A key-value list of dynamic variables to personalize the message content.
attachments object
A list of files to attach, where keys are filenames and values are publicly accessible URLs.
Code snippets
Response example
{
"success": true,
"message": "Email sent",
"emailId": "ep2W4y-7pn8o21-YPpLY9PR5Jy9-x7GYQ"
}