SMTP - Simple Mail Transfer Protocol
SMTP (Simple Mail Transfer Protocol) is a protocol used for sending email messages between servers. OsmoX uses Nodemailer, a popular Node.js library, to send emails using SMTP transport.Configuration
Database Setup
Create a new entry in thenotify_providers table with the following settings:
| Field | Value |
|---|---|
channel_type | 1 (SMTP) |
is_enabled | 1 |
Configuration Fields
SMTP server hostname
Port number for SMTP (587 for TLS, 465 for SSL)
Your SMTP username for authentication
Your SMTP password for authentication
Request Format
Sample Request Body
Request Fields
Sender’s email address
Recipient’s email address. Can be a single address or comma-separated list
CC email addresses
BCC email addresses
Email subject line
Plain text version of the email
HTML version of the email
Array of attachment objects with
filename and contentAdditional custom headers to include in the email
Currently, attachments only support text content as shown in the example.
Dependencies
| Package | Version | Description |
|---|---|---|
| nodemailer | ^6.10.0 | Email sending library for Node.js |