What you get
One way to send mail from anywhere in your app, and the freedom to change provider without changing code.
-
Choose your provider
Backends for Bird, Mailjet, Forward Email and Lettermint, plus a generic HTTP relay. Each is a component you install per project.
-
Templates you can edit
Email templates are records in your app, per account. A seed command copies the built-in texts for login links, password resets and invitations into your account, so you can edit them without a deploy.
-
Attachments and headers
Send attachments, including inline images, and extra headers such as List-Unsubscribe.
-
No double sends
An idempotency key makes sure a retried send is not delivered twice. A backend that cannot honour an option refuses the mail rather than ignoring it.
-
Readable in development
Without a provider installed, mail is printed instead of sent, so a login link is easy to find while you build.
How it works
The Email module publishes a single port: send this template to this address with these parameters. Templates are identified by name; the copy lives either with your provider or in the module's own Email Template records, depending on the backend you choose.
Other modules that send mail, such as Authentication, declare a dependency on this one instead of bringing their own mail code.