Mailing Service
The Mailing Service provides methods for sending emails using plain text, HTML content, or email templates.
Methods
send
Sends an email using either plain text, HTML content, or email templates.
Plain Text
Simple plain text email.
await bshEngine.mailing.send({
payload: {
to: 'recipient@example.com',
subject: 'Test Email',
body: 'This is a test email body',
html: false
}
});| Property | Type | Required | Description |
|---|---|---|---|
to | string | yes | Recipient email address |
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. See Email Templates |
data | object | no | Template variables for dynamic content |
*Either body OR template must be provided.