Email from OpenPush goes out from your app's own domain, in two streams that never share a reputation:
| Stream | email_purpose | Sends from | For |
|---|---|---|---|
| Sign-in and security | auth | Brand <no-reply@auth.example.com> | Sign-in links, codes, password resets, security notices |
| Alerts and notifications | mail | Brand <alerts@mail.example.com> | Campaigns, journey steps, product updates |
Each stream has its own subdomain and its own sending key, so a bad week for alerts cannot push sign-in email into spam. Alert email always carries an unsubscribe link; sign-in email never does, and is never tracked.
All examples use https://app.openpush.ai, the OpenPush API base URL, and the app's REST API key
in X-OP-API-Key.
When to use this page
When you want to email the people who use your app: alerts, campaigns, journey steps, or the sign-in email your auth provider sends. For push, see sending messages.
What is tracked
- Sent, delivered, bounced, spam complaints and unsubscribes are always recorded, from the provider's delivery reports.
- Link clicks are optional, for alert email only, through your own link domain. See click tracking.
- Opens are never tracked. OpenPush adds no tracking pixel, so there is no open rate to read.
The one rule: never email unsubscribed, bounced or complained addresses
An address that unsubscribed, bounced permanently, or marked an email as spam is put on the app's
suppression list and is never emailed again by that app, on any path: campaigns, journeys, tests and
sign-in email. There is no "include unsubscribed" option; include_unsubscribed on a send is a
400. Addresses your team suppresses by hand are skipped in the same way.
Turning on email
Open Settings → Email. An app admin enters:
- Domain — a domain this app owns, such as
example.com. Email goes out fromauth.example.comandmail.example.com. - Reply-to (optional) — where replies go, such as
support@example.com.
Press Turn on email. Where your deployment offers your own provider, the same card lets you pick it instead and continue with its setup; see bring your own provider. By turning it on you agree that the app emails only people who asked for its email. The same step over REST:
Code
The call is idempotent: a retry continues from whatever is missing. brand sets the From name;
it defaults to the app's name.
DNS records
The Email tab then lists the DNS records each sending domain needs, with Type, Name,
Value, Priority and Status, each with a Copy button. Add them at your DNS host, then
press Check DNS (POST /v1/apps/{app_id}/messaging/email/refresh). A record shows Found
once it is seen; a domain shows Verified once all of its records are. The app's status moves
from Waiting for DNS to Sending when both domains are verified. Needs attention means a
step failed; press Retry.
- Cloudflare. On a deployment connected to Cloudflare, Add records on Cloudflare adds the records for you when your domain is a zone on that Cloudflare account. Otherwise add them by hand.
- Email these records to a teammate. Enter Their email and an optional note (up to 300 characters) and press Email them. They get the records for both domains and the DMARC record with what to do; no keys or passwords are included. Five shares an hour per app.
DMARC
DMARC tells inboxes what to do with mail that fails SPF or DKIM checks, and Gmail and Yahoo require it for bulk senders. The DMARC card shows the record found on your root domain, or the one to add:
Code
Start with p=none and tighten it once reports look clean. DMARC is looked up when you press
Check DNS.
Senders and reply-tos
Settings → Email → Senders lists the From and Reply-to addresses of each stream, with one default of each kind. A message with none chosen uses the defaults.
- A from address is a local part on the stream's own domain (
hello@mail.example.com).postmaster,abuse,hostmaster,mailer-daemonandnocare refused. - A reply-to may be any address. With no reply-to, replies go to the from address.
- The default, the last from address of a stream, and any sender a draft, scheduled message or
journey step uses cannot be removed (
409). Make another the default first.
Viewers can read this page; admins add, edit, make default and remove. REST:
GET|POST /v1/apps/{app_id}/email/senders, PATCH|DELETE /v1/apps/{app_id}/email/senders/{sender_id}.
Turn off email deletes both sending domains and their keys. Addresses that unsubscribed or bounced stay blocked.
Addresses
An email address is a subscription with platform: "email"; its token is the lower-cased address.
Push never sees it. There are four ways in, and every one keeps the rule above: an address on the
app's suppression list is stored as unsubscribed (-2) and never emailed, whatever the caller says.
The Email tab's Getting started row, Register your users' addresses, is done once one sendable address exists.
Import from your previous provider
Upload a subscriptions export under Import (see import and export). Email
rows (device type 11, or platform email in an OpenPush export) become email subscriptions
with the same user fields as a push row, and their state comes with them:
| In the file | Becomes |
|---|---|
subscribed=no, or an unsubscribed status | an Unsubscribed suppression that can never be removed |
suppressed=true | an Added by your team suppression an admin may remove |
| subscribed | a subscribed address, unless it is already suppressed here |
The import summary has an Email addresses block. Turn email on first: with email off, email rows are skipped and the summary says to turn email on and import again.
Register from your server
When your own sign-up or sign-in has proven an address, register it with the REST key:
Code
Code
status is 1 (subscribed) or -2 when the address is suppressed. A 400 means the value is not
an address, or email is off for the app.
Register while sending
include_email_addresses on POST /v1/apps/{app_id}/messages takes up to 20,000 addresses, as
strings or {"address", "external_id"} objects. An address already registered is sent to (unless
suppressed). An unknown address is registered and sent to only when:
- its item carries an
external_id, or - the body sets
create_unknown: true.
Otherwise it is skipped and named in an unknown_email_addresses warning. The response's
email_addresses counts existing, created and skipped. The console, MCP and journeys never
register an address.
From your app
Use the SDKs' addEmail for the signed-in user. See SDK.
Suppressions
Settings → Email → Suppressions holds every address this app will never email again, in four tabs: Bounced, Spam complaints, Unsubscribed and Added by your team. You can Search by full address or by domain, Add addresses (up to 1,000 at a time, separated by commas or new lines, with an optional note), Import CSV and Export CSV.
- Import CSV reads the first column of a UTF-8 file, with an optional header, up to 5 MB and 100,000 rows. Imported addresses land under Added by your team.
- Export CSV columns:
address(only when a subscription of this app holds it),address_sha256,masked,reason,source,since_utc,message_id,added_by,note. Every export is written to the audit log. - A suppression is never downgraded: a complaint outranks a bounce, a bounce an unsubscribe, an unsubscribe a manual entry.
Who can remove what. Managers and admins see the page and can add, import and export. Only an admin can Remove from list, and only an address under Added by your team. Bounces, spam complaints and unsubscribes stay on the list for good. Removal is console-only.
REST: GET /v1/apps/{app_id}/email/suppressions (newest first; reason, q, limit up to 1,000,
after), POST /v1/apps/{app_id}/email/suppressions ({"addresses": [...], "note": "..."}), and
GET /v1/apps/{app_id}/email/suppressions/export.csv. Addresses are returned masked, with the
sha256 of the lower-cased address.
SDK
Available in SDK 1.2.2 and later.
addEmailandremoveEmailare part of the iOS, Android and Unity SDKs.
addEmail registers an address for the current user. It is subscribed at once, unless the app's
suppression list has it: then it is stored but never emailed. The address is trimmed and
lower-cased and must have one @, a name before it, a dot in the domain and at most 254
characters; an invalid address returns false, logs why and sends nothing. An accepted write is
persisted and retried like a tag write, and belongs to the user logged in at the time of the call.
Email must be turned on for the app.
Code
Code
Code
On Android the optional callback hears the server's final answer once, on an SDK thread. A
suppressed address is reported as SUPPRESSED and is not retried.
removeEmail is not an unsubscribe. It removes the subscription (status_detail removed)
and writes no suppression, so a later addEmail subscribes the address again. A person who wants
no email unsubscribes with the link in any alert email, or your team adds them under
Suppressions.
Under the hood both calls are POST /v1/apps/{app_id}/subscriptions with the SDK key and
{"token": "<address>", "platform": "email", "external_id": "…"}, plus external_id_auth_hash
when identity verification is on; status: -2 is the removal.
Composing
Open New email (from Sent Messages or the dashboard). The composer has three parts: Audience, Sender and Message, then Delivery.
- Audience — Send to subscribed email addresses, or Send to particular segments, plus optional addresses that must already be subscribed. Email addresses only.
- Sender — Kind of email (Alerts and notifications or Sign-in and security), then From and Reply-to from the app's senders.
- Message — Subject, Preheader and the body.
Design, HTML and Plain text
| Mode | What it is |
|---|---|
| Design editor | Drag and drop blocks; works in every mail app. Where your deployment enables it. |
| HTML | Paste or write your own HTML and CSS. |
| Plain text | Text only, like a personal email. |
A design can be switched to HTML, but HTML cannot be turned back into blocks. Plain-text version is generated from your design or HTML when you save; edit it to replace it. A size meter warns when HTML passes 102 KB, where Gmail clips emails. A warning also names CSS that Gmail and Outlook ignore, such as flexbox, grid, animations, absolute positioning, CSS variables or a page background image, so the email does not arrive looking empty. Limits: subject 200 characters, preheader 250, HTML 500 KB, plain text 100,000 characters.
Templates and starters
Or start from a design offers eight starter designs: Welcome, Come back, Event announcement, Reward waiting, Purchase receipt, Download the app, Monthly update and Simple. They are also on Templates → Email. Without the Design editor a starter opens as HTML. Replace their placeholder images (and the store links on Download the app) before sending.
Save as template keeps a design on Templates → Email; with an A/B test, only Variant A is
saved. A saved template starts a new email, a journey step, or a send through email_template_id.
REST: GET|POST /v1/apps/{app_id}/email-templates and
GET|PATCH|DELETE /v1/apps/{app_id}/email-templates/{template_id}. Drafts are kept under Save as
draft and reopen from the message list.
Merge tags and Liquid
+ Personalize inserts a tag as {{ tag }} in the subject, preheader or body. Email uses the
same Liquid as push, so user, tags, app, filters and dynamic content all work; see
personalization. Tags without a fallback can render empty, so prefer
{{ name | default: "there" }}. Liquid cannot be used inside the email's CSS, and every Liquid
field is checked before saving.
Preheader
The short line inboxes show after the subject. Keep it under about 100 characters; it is hidden in the email itself.
Unsubscribe link
Every alert email carries a signed unsubscribe link and List-Unsubscribe plus one-click
List-Unsubscribe-Post headers. Place it with {{ unsubscribe_url }}:
Code
If a design has none, one is added at the end. Opening the link shows a button, so a mail scanner
following links does not unsubscribe anyone. Sign-in email has no unsubscribe link, and a sign-in
email containing {{ unsubscribe_url }} is refused.
Test & preview
Test & preview shows the email at Desktop, Tablet and Mobile widths, in Light and Dark, rendered for a Sample person. A test goes only to:
- the app's email test subscriptions,
- your team's login emails, and
- typed addresses that confirmed a link. Send a confirmation link emails each typed address a link; once clicked, it can receive tests from this app. One link per address a day, links live seven days.
Subscribe my address adds your own address to the app's audience as a test subscription. Tests
never go to a suppressed address, and a tester's unsubscribe link suppresses that address. Up to 10
recipients at a time; your draft is saved first. REST: POST /v1/apps/{app_id}/email/send-test
with sub_ids or addresses, and either content or template_id.
Sending options
A send over REST is POST /v1/apps/{app_id}/messages with target_channel: "email":
Code
| Field | Notes |
|---|---|
subject | Required. Liquid works |
html | The HTML body. When contents/body is left out, the plain text is derived from it |
body | The plain-text body |
preheader | At most 250 characters |
email_purpose | mail (default) or auth |
email_template_id | Start from a saved email template |
email_sender_id / email_reply_to_id | Ids from the senders list. email_reply_to_id: "none" sends with no reply-to |
email_from_address / email_from_name / email_reply_to_address | Pick a sender by its strings instead. Nothing is created; 400 when it is not a sender |
include_email_addresses, create_unknown | See addresses |
track_clicks | See click tracking |
Segments, approvals, scheduling and Idempotency-Key work as for push. Push quiet hours and
frequency caps do not apply to email. An empty immediate audience is a 404.
Schedule, time zone and Best-Hour
When does sending start? is Now or At a set time (schedule_at). When does each person
get it? is Everyone at the same time, Best-Hour Delivery (delayed_option: "last-active")
or Custom time per user timezone (delayed_option: "timezone" with delivery_time_of_day).
Per-person timing is never available for sign-in email. See
Best-Hour delivery.
A/B tests
An alert email can have 2 to 4 variants (variants: [{name, subject, preheader, html, text}]),
each with its own subject and body. ab.test_pct sets the share of the audience that gets the
test; the rest waits for the winner. Send the winner by hand, or set ab.auto to send the variant
with the best click rate after after_h hours, which needs click counting. Sign-in email cannot be
an A/B test. See A/B testing.
Warm-up
A new sending domain that suddenly sends a large campaign looks like spam. Before an alert campaign goes out, OpenPush compares its audience with the sending domain's busiest day in the last 30 days:
| Advice | When |
|---|---|
none | 2,000 recipients or fewer, or no more than that busiest day |
recommended | More than the busiest day |
required | More than five times the busiest day, or the domain sent no alert email in 30 days |
Send with warm-up spreads the campaign over daily stages from 09:00 to 21:00 in your time zone, starting the next day. Stage 1 is the larger of 200 and the app's busiest day of the last three weeks; each later stage is 20% more, up to 60 stages. Edit schedule changes the stages; Use the recommended schedule restores them. Stages show on the message report, and Stop sending cancels the rest. Warm-up cannot be combined with an A/B test or per-person timing.
A required campaign without warm-up is refused. Send without warm-up anyway needs a reason,
which is written to the audit log. Over REST: warmup: {"strategy": "recommended", "timezone": "Europe/Berlin"} (or "custom" with stages), or warmup_override: true with
warmup_override_reason. Check first with GET /v1/apps/{app_id}/email/warmup/advice?recipients=…
and GET /v1/apps/{app_id}/email/warmup/schedule.
Included emails
Each plan includes a monthly number of emails sent by OpenPush:
| Plan | Included emails a month |
|---|---|
| Free | 10,000 |
| Starter | 20,000 |
| Plus | 30,000 |
| Pro | 50,000 |
| Premium | 100,000 |
| Enterprise | By agreement |
Emails to subscribers count; tests, provider check emails and everything sent through
your own provider do not. The Email tab shows Included emails used
this month and warns at 80%. Sign-in email is counted but never refused. Once a workspace has used
its allowance, new alert email is refused with 402, saying to upgrade, connect your own provider,
or wait until the first of next month; journey steps skip with email-quota.
Click tracking
Tracked links go through your app's own link domain, click.<mail domain>, so the link domain
matches your email. An admin presses Set up click tracking on the Email tab and adds the CNAME
it shows, then Check DNS; Turn off click tracking stops it. REST:
POST /v1/apps/{app_id}/messaging/email/tracking with {"enabled": true}.
- Once the host is Ready, new alert emails count clicks by default. Count link clicks
(
track_clicks) opts a message out. Sign-in email is never tracked;track_clicks: trueonauthemail is a400. - Every
http/httpslink is tracked, up to 200 per email. Links whose address contains Liquid are left as they are, unless the wholehrefends in| track_link:<a href="{{ user.tags.profile_url | track_link }}">. - Keep one link as it is with
data-op-notrack:
Code
Clicks from mail security scanners are filtered out: requests in the first seconds after delivery, several links opened at once, and known scanner agents. A delivery counts as clicked once.
Sending health
OpenPush watches each app's bounce and complaint rates over the last 24 hours and the last 7 days, every five minutes. The bounce rate is permanent bounces over emails sent; the complaint rate is spam complaints over emails delivered. A rate is measured only once at least 500 emails are in its window. The Email tab's Sending health row shows the 7-day rates and one of Healthy, Too many bounces, Too many spam complaints or Alert email paused.
| Line | Bounces | Spam complaints | What happens |
|---|---|---|---|
| Warn | 2% | 0.05% | The Email tab and the composer warn |
| Pause | 5% | 0.08% | New alert email sent by OpenPush waits |
When alert email is paused, campaigns are held and go out when sending resumes (a REST send
answers 202 with status: Scheduled and waiting_for: email_sending_health), and journey email
steps skip with email-paused. Sign-in email and test emails still go out. Sending resumes by
itself once both 7-day rates fall back under the warn line; an OpenPush platform admin can also
resume it early.
With your own provider you are warned at the same lines, but sending is never paused: your provider's account carries the reputation risk.
What to do: stop emailing addresses you have not emailed in a long time, email only people who asked for it, and import your old provider's suppressions before your first send. Bounced and complaining addresses are already suppressed for you.
Bring your own provider
Settings → Email → Provider chooses who sends the app's email: OpenPush sends it (no account needed) or Use your own email provider — SendGrid, Mailgun, Mailchimp Transactional or Resend. Your provider bills you, and those emails do not count against your plan.
An admin connects it in steps:
- Connect your account — Brand name, API key, Region (SendGrid global or EU, Mailgun US or EU) and, for Mailgun, the Webhook signing key. The key is stored encrypted and never shown again. For Resend use a Full access key: a sending-only key cannot read your domains or suppression list, or add the webhook.
- Domains — choose domains already verified at your provider for sign-in and for alert email. One domain for both works, but a second one keeps them apart. OpenPush only reads these records; fix them at your DNS host.
- Reports — OpenPush adds one delivery-report webhook (Add the webhook), or you add it and
press I added it (for Resend, with its signing secret,
whsec_…). - Check — Send check email proves the webhook end to end, then Finish.
What syncs. OpenPush reads your provider's suppression lists into this app's list (Mailchimp Transactional: the first 1,000; import the rest as a CSV on Suppressions), hears bounces, complaints and unsubscribes through the webhook, and still checks its own list before every email. The page shows whether reports are arriving, with Fix when they stop. Update API key replaces the key. Disconnect removes OpenPush's webhook and your key from the provider.
Changing provider. Change provider takes effect at once. While the new one is set up, the
app sends no email: scheduled emails, timed sends, warm-up stages and journey email steps wait, and
go out once the new provider is ready. Your suppression list, senders, templates and history stay.
Cancel scheduled emails first if they should not go out through the new provider. A change is
refused while emails are being sent. REST: POST|PATCH|DELETE /v1/apps/{app_id}/messaging/email/provider
and POST …/provider/check.
Journeys
A send_email step emails each person who reaches it once, from their own email subscriptions.
Design the email in the composer framed by the journey editor and press Use in journey; it is
saved as the step's own email template. The step also picks Kind of email, the sender, the
reply-to and Count link clicks.
- Suppressed people are skipped. A paused app's alert step skips with
email-paused; a workspace out of included emails skips withemail-quota. - During a provider change, or while email is switched off on the deployment, the run waits and sends when it resumes.
- A Yes/No branch can test
receivedon the step, andclickedwhen the step counts clicks.
See journeys.
Ask AI and MCP
Ask AI and MCP prepare an email send like a push: you see the email's preview on a card and nothing is sent until you confirm. Every check a composer send runs applies. An address the app has not registered is skipped, never registered, and a campaign whose warm-up is required must be sent from the composer.
Supabase sign-in email
Supabase sends sign-in email through OpenPush with its Send Email hook, so every address is checked against your suppressions first. In Supabase, open Authentication → Hooks, add a Send Email hook of type HTTPS, and paste the Hook URL and Secret from the Supabase sign-in email card on the Email tab. Until the app's first hook call, the card sits under Using Supabase Auth? Send its sign-in email through OpenPush, which only an OpenPush platform admin sees. Send yourself a sign-in link; the card shows the first call.
OpenPush renders each action (sign-up, magic link, recovery, invite, email change, reauthentication
and email codes, and the security notices) and sends it from the default sign-in sender with no
tracking and no unsubscribe link. A suppressed address gets a 400 saying no sign-in email was
sent. Make a new secret replaces the secret; Supabase cannot call the hook until you paste the
new one.
SMTP for Supabase is being retired, because SMTP cannot check the suppression list. An app still on SMTP sees a warning with Switch to the hook and the date SMTP stops working; once the hook has answered, the old SMTP password stops working. With your own provider there are no SMTP values.
REST quick reference
| Route | What it does |
|---|---|
GET /v1/apps/{app_id}/messaging/email | The Email tab as JSON: domains, records, senders, health, included emails |
POST /v1/apps/{app_id}/messaging/email/enable | Turn on email |
POST /v1/apps/{app_id}/messaging/email/refresh | Check DNS |
POST /v1/apps/{app_id}/messaging/email/tracking | Click tracking on or off |
POST /v1/apps/{app_id}/email-addresses | Register a proven address |
GET|POST /v1/apps/{app_id}/email/suppressions, …/export.csv | Suppression list |
GET|POST /v1/apps/{app_id}/email/senders, PATCH|DELETE …/{sender_id} | Senders and reply-tos |
GET|POST /v1/apps/{app_id}/email-templates, GET|PATCH|DELETE …/{template_id} | Email templates |
POST /v1/apps/{app_id}/email/send-test | Test email |
GET /v1/apps/{app_id}/email/warmup/advice, …/schedule, …/active | Warm-up |
POST|PATCH|DELETE /v1/apps/{app_id}/messaging/email/provider, …/check | Your own provider |
POST /v1/apps/{app_id}/messages with target_channel: "email" | Send |
Request and response schemas are in the API reference.
Event Streams
Event Streams can send email activity to your own system:
| Event | Label |
|---|---|
message.email.sent | Sent |
message.email.delivered | Delivered |
message.email.bounced | Bounced |
message.email.complained | Marked as spam |
message.email.clicked | Link clicked (first click only) |
message.email.unsubscribed | Unsubscribed |
message.email.failed | Could not send |
message.email.suppressed | Not sent: suppressed |
subscription.opted_out also fires when someone stops email by unsubscribing, bouncing or marking
it as spam.
Reading the report
An email message's report shows Sent, Delivered, Clicked, Bounced, Spam and Unsubscribed, a table of links, the reasons emails were not sent, the sender, any warm-up stages and a preview. The activity export masks addresses.
Related
- Sending messages — push sends and shared options
- Personalization — Liquid, tags and dynamic content
- A/B testing — variants and winners
- Import and export — bringing subscribers in
- Messages API reference