Send Email
Send an email using either plain text, HTML content, or email templates.
First you need to configure the email configurations before using this endpoint.
Endpoint
POST /api/mailing/sendRequest Body
Plain Text
Simple plain text email.
{
"to": "recipient@example.com",
"subject": "Test Email",
"body": "This is a test email body",
"html": false
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
to | string/array | Yes | Recipient email address(es) |
subject | string | No | Email subject line |
body | string | No* | Email body content |
html | boolean | No | Whether body contains HTML (default: false) |
template | string | No* | Template name for template-based emails |
data | object | No | Template variables for dynamic content |
*Either body OR template must be provided.