@mailzeno/core
v0.3.1
Published
SMTP engine for MailZeno
Maintainers
Readme
@mailzeno/core
SMTP engine powering MailZeno.
Low-level email sending library with:
- SMTP pooling
- Retry logic
- Exponential backoff
- Transient error detection
- React email rendering
- Timeout handling
Installation
npm install @mailzeno/coreUsage
import { sendEmail } from "@mailzeno/core"
await sendEmail(
{
id: "smtp_id",
host: "smtp.example.com",
port: 587,
secure: false,
user: "username",
pass: "password"
},
{
from: "[email protected]",
to: "[email protected]",
subject: "Hello",
html: "<h1>Hello world</h1>"
}
)Features
- SMTP connection pooling
- AES-safe config handling (handled by parent app)
- Automatic retries for transient failures
- React email rendering support
- Structured error mapping
- ESM + CommonJS support
Requirements
- Node.js >= 18
License
MIT © MailZeno
