The engine separates email a player asked for (transactional) from promotional email (marketing). Marketing email only goes to players who opted in, and every marketing email can be unsubscribed from with one click.
Who receives marketing email
A player receives marketing email only when all of these are true:
| Condition | Where it is set |
|---|---|
Marketing emails is on (User.marketingEmails) | Registration checkbox, the one-time prompt, Settings → Email, the unsubscribe page |
Email notifications is on (User.emailNotifications) | Settings → Email, the unsubscribe page ("Unsubscribe from all email") |
| The email address is confirmed | Email verification |
| The account is not a bot and not blocked | Players › Users |
Everyone starts opted out, including every player who existed before this feature. The engine never opts a player in on their behalf.
Transactional email (password resets, email verification, system emails such as withdrawal notices, and plugin messages the player asked for) does not need marketing consent. Security email such as password resets is sent even when email notifications are off.
How players give or withdraw consent
- Registration. The default register form (and themed register pages that use the theme SDK) shows an unticked checkbox: "Send me promotions and free-chip offers by email". The answer is recorded with source
registration. - One-time prompt. A player who has not answered yet sees a small dialog once after signing in, as soon as their address is confirmed. "Yes" opts in. "No thanks", closing the dialog or pressing Escape records "no". It is never shown again.
- Settings. Settings → Email has Email notifications and Marketing emails toggles.
- Unsubscribe link. Every marketing email ends with an unsubscribe link to
/unsubscribe, which works without signing in. The player can stop promotions, stop all non-essential email, or undo the change. - One-click unsubscribe. Mail providers such as Gmail and Yahoo show their own "Unsubscribe" button, using the
List-UnsubscribeandList-Unsubscribe-Postheaders (RFC 8058) the engine adds to every marketing email. That unsubscribes immediately.
Each change stores when it happened and where it came from (registration, prompt, settings, unsubscribe or admin) on the user, so you can show when and how a player consented.
Which email is marketing
| Sender | Kind |
|---|---|
| Bulk email campaigns (Growth › Email Campaigns) | Marketing: only opted-in players are counted and sent to |
Plugins, when they send with kind: 'marketing' (promotions, free-chip offers) | Marketing |
| System emails, verification and password reset | Transactional |
| Plugins, by default (claim confirmations, reminders for something the player signed up for) | Transactional |
The audience estimate of a bulk campaign ("About N recipients" under Who gets it in the New email campaign form) already excludes players who have not opted in. The form says so too: only players who confirmed their email and agreed to marketing emails receive it.
Unsubscribe links
Links are signed with a key derived from ENCRYPTION_KEY. They contain no email address and do not expire, so a link in an old email keeps working. When you rotate ENCRYPTION_KEY, keep the old key in ENCRYPTION_PREVIOUS_KEYS for a while: links signed with it keep working. The links point at the Site URL in Settings › Server & Email Delivery, so set it to your public address.
The unsubscribe endpoints (/api/v1/email/unsubscribe and /api/v1/email/resubscribe) need no sign-in, are rate-limited per IP address and keep working during maintenance mode.
Plugin email templates
A plugin with the notify:email capability can register default email templates. They appear in Site & Content › Email Templates named plugin_<plugin>_<key>, with a Plugin: <name> badge. You can edit their subject and body like any other template; your changes are kept when the plugin restarts or updates. They cannot be renamed, because the plugin finds them by name. Deleting one restores the plugin’s default the next time the plugin loads.
Privacy note
Marketing consent is personal data about a player’s choices. The engine stores the flag, the time of the last change and its source on the user record, and includes nothing else. Plugins only see whether a player opted in (with the users:read capability), never their address. Keep the unsubscribe link in every promotional email you send from outside the engine as well; consent recorded here only covers email the engine sends.
Related
- System Emails: SMTP, system email events and bulk campaigns
- Content Management — Email Templates
- Plugin notifications (developers)