Skip to Content
🎉 New release with new features and improvements! V0.0.2 Release →

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/send

Request Body

Simple plain text email.

{ "to": "recipient@example.com", "subject": "Test Email", "body": "This is a test email body", "html": false }

Parameters

ParameterTypeRequiredDescription
tostring/arrayYesRecipient email address(es)
subjectstringNoEmail subject line
bodystringNo*Email body content
htmlbooleanNoWhether body contains HTML (default: false)
templatestringNo*Template name for template-based emails
dataobjectNoTemplate variables for dynamic content

*Either body OR template must be provided.