Introduction
Transactional e-mail for the DMS, with a block editor, drafts and versions, a send log and delivery metrics.
@antelopejs/dms-mailing gives your workspace a home for its e-mails. You design templates in a block editor, publish them as versions, and your code sends them by slug. Every send lands in a log with what the provider reported back, and an overview turns those events into delivery and engagement figures.

A first test send
The quickest way to see the module work is a test send. After installation, create a template from the Order confirmation starter. The starter arrives as a draft, with its variables declared and its test data filled in. In its editor, the preview switches from Variables to Data to show the subject and the order details rendered with that test data. Test sends the template to addresses you enter. Use an inbox you control, or the Ethereal inbox in the playground, rather than real customer addresses.
A test send uses the draft by default and adds [TEST] to the subject. It appears in Sends, flagged as a test, and stays out of the overview figures. Publishing is a separate step. It makes that version the one SendTemplate sends. A successful handoff to the provider does not prove delivery. Delivery and engagement come from the events the provider reports.
What it brings
Block editor
Images, headings, paragraphs, codes, lists, totals, buttons, dividers, conditions and a footer, with typed variables and live test data.
Drafts and versions
Edits stay in draft. Publishing creates the next version, which is what customers receive.
Send log
Every e-mail, its data, its version, its locale and the provider's timeline, with Send again… and Send to another address.
Delivery health
Deliverability, open and click rates, a funnel, a suppression list and a provider webhook.
How it fits together
- Your code, an automation or the dashboard asks for a template by its slug, with recipients and data.
- The module renders the published version in the recipient's locale and hands it to the e-mail provider.
- The provider reports deliveries, opens, clicks and bounces to the module's webhook.
- The overview and the send log update in real time. A hard bounce, a spam complaint or an unsubscription puts the address on the suppression list.
The module stores templates and sends per workspace (tenant), in its own tables. E-mails render through the DMS html-render chain, so they share the DMS e-mail branding. If that renderer fails, the module falls back to its own HTML renderer. E-mails go out through the module that implements @antelopejs/interface-email, for example @antelopejs/nodemailer.
The module also delivers DMS notifications by e-mail: a user who turns e-mail on for a notification subject gets it through the workspace's Notification template. See DMS notifications by e-mail.
Other modules call the module through @antelopejs/interface-dms-mailing. They send with SendTemplate, attached files included, and report provider events with RecordEmailEvent. When a workspace is provisioned, they can also ship templates, categories, the sender and the webhook secret as code (DeclareTemplate, DeclareTemplateCategory, DeclareSender, DeclareWebhookSecret) and import past sends (ImportSends).
Where it lives in the dashboard
The module registers under /modules/mailing. Like every DMS module, it is reserved to the platform owner.
| Group | Page | What you do there |
|---|---|---|
| Mailing | Overview | Read delivery and engagement figures, and what needs attention |
| Mailing | Templates | Browse, create, duplicate and archive templates |
| Mailing | Editor | Design a template, test it, publish it. It opens from a template and has no sidebar entry. |
| Mailing | Sends | Follow every e-mail sent and fix problems |
| Configure | Settings | Sender, delivery guards, provider webhook, retention, categories |
| Configure | Suppression list | Addresses that receive nothing any more |