Email is how the site sends mail: form notifications, messages to users (account confirmation, password reset), appointment confirmations and order mails. Core sends all of it through one shared setup that features and modules use. An admin chooses how mail goes out (an SMTP server or the Brevo mail API) and enters the settings on the Email screen. Every attempt is logged, without the message text.
What users can do
Admins choose how mail goes out (an SMTP server or Brevo) and the sender shown to recipients, see whether email is ready, send a test email, and read the log of sent email. Stored passwords and keys are never shown again. They can also change the wording of the emails SHADE sends itself, per language, and go back to the default (see Messages).
Everyone else depends on it without using the screen: users receive account, appointment and order mails, and the site's people receive notifications (see Who sends email).
Who may do it
| Action | Permission | Roles |
|---|---|---|
| See the settings | settings.read | admin |
| See the log (who got which email) | private.read, never part of a custom role | admin |
| Save the settings, send a test email | settings.update | admin |
| See, block and unblock blocked addresses; make a new webhook address | settings.update | admin |
| Edit the wording of SHADE's emails, reset it, send a test to yourself | settings.update | admin |
| See modules' mailing lists and who is on them (the Lists tab) | private.read, never part of a custom role | admin |
Editors and AI users cannot open the screen. Email sent by a feature or module needs no permission of its own: the feature or module checks its own.
In the admin

Email is in the settings area's Your business group. It has two tabs: Settings (below) and Messages (the wording of SHADE's emails, see Messages). Settings has, top to bottom:
- Header: a badge Ready (green) or Not set up (orange), and Save.
- An intro line on what the site sends email for.
- Sender card: Send with (SMTP server / Brevo), Sender name, Sender address (both required).
- SMTP server card (when SMTP is chosen): Server (host name, e.g.
smtp.example.org), Port (default 587), TLS from the start (on for port 465; off means STARTTLS, port 587), Username, Password. The help text says connections are always encrypted. - Brevo card (when Brevo is chosen): API key, with a hint to create it in Brevo under "SMTP & API".
- Test email card: an address field (Send a test to) and Send test. The button is disabled until the settings are complete and saved and an address is typed. The result shows as a toast: "Test email sent to …" or "The test email could not be sent" with "Could not connect to the mail server". What the server or the connection said is in the server's log and in the Sent email log, never in the toast.
- Sent email log: columns When, Subject, To, From (what sent it, see below) and Status (Sent, Retrying or Failed, and Over the limit for a mail over the instance's emails-per-day usage limit, not sent). It shows 20 entries a page, newest first, and filters by status. Each row shows what went wrong as text under the status, and a mail waiting to be tried again shows its next try.
Secrets: the password and API key fields are always empty. When one is stored, the field shows dots and the help text "Saved. Type a new value to replace it." Leaving the field empty keeps the stored value. Someone who may see but not change the settings sees the form read-only (fields disabled, no Save, no test card).
The screen is in English and Dutch, like the rest of the admin.
Example: sending with Brevo
Brevo works both ways. The Brevo mail API needs nothing but a key:
- In Brevo, open SMTP & API, tab API keys, and create a key.
- In SHADE, on the Email screen: Send with Brevo, the Sender name and Sender address, and the key in API key. Save, then send a test to yourself with Send test.
Or through Brevo's SMTP server, with the login and SMTP key on the same Brevo page (tab SMTP):
| Field | Value |
|---|---|
| Send with | SMTP server |
| Server | smtp-relay.brevo.com |
| Port | 587, with TLS from the start off |
| Username | the SMTP login Brevo shows |
| Password | an SMTP key created there |
Either way, Brevo only sends from a sender address it has verified: add the address, or better its whole domain, under Senders, domains & dedicated IPs in Brevo first.
Who sends email
The log's From column names what sent each email: core's own mail by its purpose (Form, Shop, Invitation, Test email…), and a module's email by the module's name. A module cannot send email under another name.
| Sent by | To | When | Language |
|---|---|---|---|
| The Email screen (test email) | the typed address | Send test | the admin language of whoever sends it |
| Signing in, Team (password reset, invitation) | the team member | Forgot your password; Send invitation | the team member's admin language, else the site's default |
| Accounts | the user | sign-up confirmation, password reset | site's default language: Dutch if it is Dutch, otherwise English |
| Forms | the form's notification addresses | a visitor submits a form | each recipient's language (see below); reply-to is the first filled-in email field |
| Appointments module | the visitor; and the business's recipients | booked; canceled (visitor only) | visitor: their booking language, else the site default (Dutch or English); business: each recipient's language |
| Shop module | the customer; and the shop's notification addresses | an order is paid | customer: order language, else site default (Dutch or English); shop: each recipient's language |
Language of emails to the business. Form, appointment and order notifications go out once per language: an address that belongs to a team member who chose an admin language gets that language (it is saved when they switch, or when they first open the admin); any other address gets the site's default language.
When no recipients are set (a form's, or the business side of appointments and orders), no mail is sent.
Bounces and complaints
Mail that keeps going to dead or unwilling addresses hurts your sender's reputation, and then your own mail lands in spam too. So SHADE stops sending to an address after (decision 0013 point 22):
- a hard bounce: the address does not exist;
- a spam complaint: the person marked your mail as spam;
- three soft bounces within seven days (a full mailbox, a server that is down): blocked for seven days, then tried again;
- a block by hand: an admin's, under Blocked addresses.
What still goes, and what does not:
- Mail with a link always goes: a password reset, an invitation, a confirmation, all SHADE's own (never a module's). The person just asked for it. Once it is delivered, a hard or soft bounce of that address is lifted; a complaint stays.
- Everything else skips a blocked address: form notifications, alerts, modules' mail and reminders. A mail to several addresses still goes to the others; the log shows the skipped ones as Blocked. A mail waiting to be tried again skips an address blocked meanwhile. A planned reminder to a blocked address ends as skipped.
- When the blocked address is a team member's, or one a form sends its submissions to, the security alert Email to your own address is blocked tells the admins. The submissions are still on the Forms screen.
With Brevo SHADE hears of bounces and complaints from Brevo's webhook. After you save the Brevo settings, the Brevo card shows an address, once: paste it into Brevo under Transactional, Settings, Webhooks, for the events Hard bounce, Soft bounce and Spam. Brevo signs nothing, so SHADE treats an event only as a hint and asks Brevo's API with your key whether it happened; what Brevo does not confirm is dropped. Once an hour SHADE also asks Brevo for soft bounces and its blocked list, so a missed webhook costs at most an hour. If you lose the address, New webhook address makes another; the old one stops working at once.
With SMTP SHADE knows only what the mail server answers while sending: a permanent refusal of an address (a 5xx answer) blocks it, and that mail is not tried again. A 5xx to the sender or to the message itself (a sender address the server will not send for, a message too large, a spam filter) blocks nobody: the mail failed and is tried again, as when the server is down. A bounce that arrives later goes to the sender's mailbox; SHADE does not read it. Block such an address by hand under Blocked addresses.
Blocked addresses (on the Email screen, admins): each address with why, since when and until when, Unblock, and Block an address. Both are in the audit log, without the address. Unblocking an address that complained asks you to be sure. A blocked address is personal data: it is found, exported and erased with the person, and erasing it lets mail reach it again. It is kept 365 days after its last bounce or complaint by default (at least 30; see Retention).
Messages: the wording of SHADE's emails
Under Email, tab Messages, admins change the subject and text of the emails SHADE sends itself, in English and in Dutch. An email nobody edited goes out with its default text. Everything stays plain text.
The emails, grouped as on the screen:
| Group | Sent to | Placeholders (required in bold) | |
|---|---|---|---|
| Team | Invitation | a new team member | {name}, {siteName}, {link} |
| Team | Password reset | a team member who forgot their password | {name}, {siteName}, {link} |
| Team | Confirm a new email address | the new address of a team member | {name}, {siteName}, {link} |
| Team | Email address being changed | the old address of a team member | {name}, {siteName}, {newEmail} |
| Users | Confirm the email address | a user who signed up | {name}, {siteName}, {link} |
| Users | Account already exists | the owner of an address someone signed up with again | {name}, {siteName}, {link} |
| Users | Password reset | a user who forgot their password | {name}, {siteName}, {link} |
| Forms | New form submission | the form's notification addresses | {form}, {siteName}, {answers} |
| Alerts | Security alert | the admins, for every kind of alert | {siteName}, {title}, {items} |
| Alerts | Backup downloaded | the admins | {siteName}, {who}, {backup}, {takenAt} |
| Alerts | Setup exported | the admins | {siteName}, {who}, {size}, {entries}, {media}, {submissions}, {teamMembers}, {users} |
| Alerts | Audit log exported | the admins | {siteName}, {who}, {format}, {entries}, {from}, {to}, {sha256} |
| Alerts | Module switched off | the other admins | {who}, {plugin}, {redirects} |
The test email of the Settings tab is not on the list: it checks the settings. Modules write their own emails (appointments, the shop), so their wording is the module's.
Opening one shows:
- a tab per language (English, Dutch) and a badge Edited or Default text;
- Subject and Text; under them Placeholders, each with what it is filled with: click one to insert it where the cursor was. Required ones must stay in the text;
- Send test to me: what you are editing, filled with sample values, goes to your own address (never another one). It shows in the Sent email log as a test email;
- Reset to default (when that language was edited): asks first, then the default text goes out again;
- Preview: the subject and text filled with sample values, as they are sent;
- Save in the header, which saves every language you changed.
The list shows which languages of an email were edited (Edited: English).
Rules:
- A placeholder is a name in braces, such as
{name}. Only the placeholders of that email are allowed: another one is refused, naming it ("This email has no placeholder firstName"). - Every email with a link (an invitation, a reset, a confirmation) keeps its
{link}in the text: without it the save is refused ("Keep the placeholder link in the body"). So does what a security notice is about: the new address, who did it, the module (bold in the table). The screen says so before you save. - Values are filled in as plain text, never as HTML. A link on a line of its own stays a link in every mail program.
- The subject is one line, at most 200 characters: line breaks become spaces, also in what fills a placeholder. The text is at most 10,000 characters.
- A line that holds only a placeholder with nothing to fill in is left out (Module switched off without redirected item pages).
- Each email has a tab per language: the site's languages first, then any other language SHADE (or the module) ships a text in, such as English and Dutch. A site language without a text of its own starts from the site's default language's text, else the English; edit it there to make it your own.
- The language of each email: a team member's admin language, else a person's own language as SHADE knows it, else the
site's default language; a user's by the page they came from. Then the closest tab:
nl-BEtakesnlwhen there is nonl-BE. - The instance export carries the edited texts in
settings.json. - Saving what someone else changed meanwhile is refused: the screen says so and offers to reload. The same for a reset.
- Saving the default text again stores nothing: the email counts as not edited.
- After an update of SHADE, an edited text that no longer fits its email (a placeholder that is gone, or one that became required) is set aside: the default goes out until an admin edits it again, and the server's log says so.
- Every save and reset is in the audit log (
email.templates.update, with the email and the language). Saving and resetting need a signed-in session, never an API token.
Modules can have emails of their own on this screen too, in a group called Modules: the order confirmation of the shop and the booking confirmation of appointments, for instance. They work the same way (a tab per language, placeholders, a preview, Reset to default and a test to yourself). A module's emails show only while the module is switched on.
Mailing lists (bulk mail)
A module that sends marketing mail, such as a newsletter, goes through bulk mail rules in core instead of sendEmail
(experimental until a second module uses them). Mail that is part of serving someone, a confirmation or an order,
stays transactional and is never held back by a list.
- Double opt-in. Someone who signs up gets a mail with a link and is on the list only after following it. SHADE keeps what they were shown (the consent text) and when they asked and confirmed, as the proof of consent. It keeps no IP address. The person is kept as a contact (see People), and following the link confirms their address.
- One-click unsubscribe. Every list mail has
List-UnsubscribeandList-Unsubscribe-Postheaders (RFC 8058), so Gmail, Apple Mail and others show an Unsubscribe button, and a link in the footer. It leaves one list for one address. - Suppression per list. Someone who unsubscribed, bounced or complained gets no more mail on that list. A person who left can join again, but only through a new confirmation. A blocked address (see Bounces and complaints) cannot sign up.
- Apart from transactional mail. List mail is not counted toward the emails-per-day limit and has a cap of its own per module (5000 in 24 hours), so a newsletter cannot use up the room an order confirmation needs. One confirmation mail an hour per address, and 200 an hour per module, keep sign-ups from filling inboxes.
- Imports. A module can add people who agreed elsewhere (a list moved from another tool) with the proof it has: the consent text, where and when. No confirmation mail is sent. An import never adds a blocked address, anyone who left the list, or an erased person who had unsubscribed; it reports only how many it added and skipped.
The subscriptions are personal data: they are found, exported and erased with the person (see Privacy). Erasing someone who had unsubscribed or complained keeps their objection as a keyed hash of the address only, so no list mails them again unless they confirm a new sign-up themselves. Sign-ups never confirmed are removed after 30 days (see Data retention).
The Lists tab
Email → Lists shows every module's lists. For each: how many people are subscribed, waiting for confirmation, unsubscribed and suppressed (a bounce, a spam complaint, or a block that stands now). Below, each module's list mail of the last 24 hours against its cap of 5000, and how many erased people's objections are kept. Open a list to see who is on it, newest sign-up first, and filter by status. Each address leads to the person on the People screen.
The tab is read only: people join and leave through the module's own pages, and you block an address on the Settings
tab. It shows addresses, so only admins see it (private.read), as with the log.
On the website
Nothing directly. Visitors only see the effect: mails arrive, and accounts can only be switched on once email is set up. A failed mail never fails what the visitor did: the submission, booking or order is stored first, and a mail failure is only logged.
Rules and limits
When the provider keeps failing. After five or more of them in a minute, at least half of its calls (a timeout, no connection, a host not found, a 5xx answer or a 429), SHADE stops calling your SMTP server or Brevo for a while: 30 seconds at first, longer each time it is still down, at most 5 minutes. An email sent meanwhile is not lost: it is logged as waiting to be tried again, as when the provider is down, and its tries are not used up while SHADE waits (for up to a day). A refused address or a wrong password is an answer, never counted.
Attachments. An email may carry up to 5 files, 10 MB together: PDF, calendar, CSV, PNG or JPEG (the shop attaches its invoices). An email waiting to be tried again keeps them; the log never shows them.
When email counts as set up. Settings must be saved and complete for the chosen way of sending: for SMTP a server name; for Brevo a stored API key. An SMTP password is not required (servers without login are allowed). Ready means it can send: after the instance's secret key changed, the screen says Enter the secret again instead of Ready.
When it is not set up:
- Nothing is sent: the mail is logged as Failed with the reason "Email is not set up".
- Accounts cannot be switched on ("Set up email first: users confirm their address by email"); the switch on the Accounts screen is disabled with an explanation.
- Modules that need email (appointments, shop) show "Needs setup" with "Set up first:" on the Modules page and cannot be switched on.
Email cannot be switched off while it is needed: a change that leaves email unusable while accounts or a module that sends email is on is refused, naming them ("Email is still needed by accounts: switch them off first").
Settings checks:
- Sender name 1–100 characters; sender address a valid email, at most 254 characters.
- SMTP server: a host name (letters, digits, dots, hyphens), at most 253 characters, or empty. Port 1–65535.
- The SMTP server must be on the internet: before each connection SHADE looks its name up once and refuses an address
inside the server's own network (private, loopback, link-local, the documentation ranges and the like, as for
modules' calls out), then connects to the address it checked. A relay of the
instance's own or a mail catcher in development needs
SHADE_SMTP_ALLOW_INTERNAL=trueon every container (Running on Coolify). - Secrets at most 500 characters; spaces around them are removed before storing.
Messages:
- Plain text only. There is no HTML: no visitor input can end up as HTML in a mail. Each of SHADE's own emails has a default text, which admins may change under Messages; modules write their own.
- 1–50 recipients, each a valid address. Subject 1–200 characters, on one line. Body up to 100,000 characters. Optional reply-to. Subjects, reply-to and names are always kept on one line.
- A mail refused before sending (email not set up, or the message is invalid) is logged as Failed with the reason.
Encryption. SMTP is always encrypted: TLS from the start, or STARTTLS is required (never plain text). Brevo is reached over HTTPS.
Failures and new tries. A mail that does not get through is not lost: it is logged as Retrying with the error and tried five more times, first after a minute and then doubling, up to an hour apart. A success marks it Sent; after the sixth attempt it is Failed. A mail whose log entry was erased meanwhile is not sent. Whatever sent it carries on and is not told. Exceptions:
- An email with a sign-in, reset or confirmation link (password resets, invitations, email changes, user account emails) is never kept for a new try: a failure is logged as Failed, so nothing keeps a working link, and the person asks for a new one.
- The test email is never tried again: it fails at once with "Could not connect to the mail server", so a wrong setting shows straight away; the reason is in the Sent email log.
Secrets. The SMTP password and Brevo key are stored encrypted, like module secrets, and never shown in the browser again; the screen only says whether one is stored. The audit entry for a save names which secrets changed, never their values. If the instance's secret key changes, stored secrets can no longer be read and must be entered again.
Personal data in the log. The log keeps recipients, subject, source, status and error, never the message text (messages, names, order lines). Subjects can still hold personal data, such as the visitor's name ("New message from Ann via …") or an order number.
Rate limits. Email has none of its own; limits on public forms belong to those features.
Retention. Log entries older than 90 days are deleted automatically (at least 7; admins can change it). See Data retention.
Other mail services can be added when a client needs one.
For developers
The code and its tests: shade/features/email/README.md in the shade repository.