@adrper79-dot/email
Typed transactional email using Resend. Depends on@adrper79-dot/errors and @adrper79-dot/logger.
Installation
Secrets required
API
sendEmail(opts)
Sends a transactional email via Resend.
renderTemplate(template, data)
Renders a named template with data interpolation.
Built-in templates
| Template | Use case |
|---|---|
welcome | New user sign-up confirmation |
subscription-created | Payment successful, plan started |
subscription-canceled | Subscription ended |
trial-ending | Trial expires in N days |
password-reset | Password reset link |