[data-reveal]{opacity:1!important;transform:none!important}
AntelopeJS DMS
DocumentationIntroduction

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

  1. Your code, an automation or the dashboard asks for a template by its slug, with recipients and data.
  2. The module renders the published version in the recipient's locale and hands it to the e-mail provider.
  3. The provider reports deliveries, opens, clicks and bounces to the module's webhook.
  4. 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.

GroupPageWhat you do there
MailingOverviewRead delivery and engagement figures, and what needs attention
MailingTemplatesBrowse, create, duplicate and archive templates
MailingEditorDesign a template, test it, publish it. It opens from a template and has no sidebar entry.
MailingSendsFollow every e-mail sent and fix problems
ConfigureSettingsSender, delivery guards, provider webhook, retention, categories
ConfigureSuppression listAddresses that receive nothing any more

Installation

Add the module and an e-mail provider to your project.

Send from code

Call SendTemplate and report provider events.