@headless-lms/adapter-email-resend
v0.1.0
Published
Resend email adapter for the headless LMS
Readme
@headless-lms/adapter-email-resend
Resend implementation of the EmailSender port from @headless-lms/core/types.
The adapter reads no environment itself — the installation's config.ts parses
env into a ResendEmailConfig and injects the constructed adapter:
import { ResendEmailAdapter } from "@headless-lms/adapter-email-resend";
const container = await createContainer(config, {
adapters: { email: new ResendEmailAdapter({ apiKey, from }) },
});Environment variables (reference installation)
| Variable | Required | Maps to | Notes |
| ---------------- | -------- | -------- | -------------------------------------------------------- |
| RESEND_API_KEY | yes | apiKey | Unset → no adapter injected; email sends fail loudly. |
| EMAIL_FROM | no | from | e.g. Acme LMS <[email protected]>, on a verified Resend domain. Defaults to [email protected]. |
