@shogo-ai/email
v1.10.0
Published
Shogo Email — multi-provider transactional email (SES, SMTP, OCI) with built-in transactional templates.
Maintainers
Readme
@shogo-ai/email
Multi-provider transactional email with sane templates baked in.
| Provider | Peer dep |
| --- | --- |
| AWS SES | @aws-sdk/client-ses |
| SMTP (any) | nodemailer |
| OCI Email Delivery | nodemailer (uses OCI's SMTP interface) |
Provider drivers are dynamically import()-ed, so you only install
the peer matching your chosen provider.
Quickstart
import { createEmailServerFromEnv } from '@shogo-ai/email/server'
// Auto-selects based on env (EMAIL_PROVIDER=ses|smtp|oci)
const email = await createEmailServerFromEnv()
await email.sendTemplate('welcome', { to: '[email protected]', data: { name: 'Ada' } })License
MIT — see LICENSE.
