Email campaigns
Send email campaigns from your own domain, with tracking, unsubscribe and bounce handling built in.
Email goes out through Amazon SES, managed by PushFyre. Each app sends from its own authenticated domain, signed with DKIM. An email subscriber is a subscription of the app, next to its Android, iOS and web subscriptions, so segments, frequency capping and reports work the same way.
1. Authenticate a sending domain
- Open Settings → Email settings → Senders and choose Set up authenticated sender.
- Enter a sending domain (a subdomain such as
mail.yourdomain.comkeeps your main domain's reputation separate), the sender email on that domain and the sender name. - Add the three DKIM
CNAMErecords shown at your DNS provider. The_dmarcTXT record is recommended. - Choose Verify DNS. DNS changes usually show up within an hour and can take up to 72 hours.
On the same page, set an optional Reply-to address and the Mailing address. The mailing address is added to the footer of every email, as CAN-SPAM requires.
2. Collect email addresses
Add an address only after the person agreed to receive email from you. The SDK does not show a consent dialog.
- Web:
PushFyre.setEmail("name@example.com"), andPushFyre.removeEmail("name@example.com")to stop. - Android:
PushFyre.setEmail(context, "name@example.com")andPushFyre.removeEmail(context, "name@example.com"). - iOS:
PushFyre.setEmail("name@example.com")andPushFyre.removeEmail("name@example.com"). - After
login, the address is linked to that external user id. - Server:
POST /api/v1/email/api/subscriberswith your API key and{ "email": "name@example.com", "externalUserId": "user-42" }. - Portal: Audience → Email Subscribers adds one address or imports a CSV with
emailandexternal_user_idcolumns.
3. Design the message
Open Messages → Email → New email. The page is four parts: the audience (including a segment to leave out), the verified sender and reply-to, the message, and an optional schedule.
The canvas has three tabs:
- Content — drag a title, paragraph, list, image, button, divider, spacer, social, HTML, video, icons, menu or GIF block into a column, or click it to add a row.
- Rows — column layouts, from one column to four. Each column starts with a paragraph you can type in.
- Settings — content width, left or center alignment, background colors, the default font, and the link color.
Select a title, paragraph, or list and type in the block. The toolbar sets font, size, bold, italic, underline, strikethrough, color, alignment, and lists on the words you select, plus a link, an image, a table, {{email}}, and {{unsubscribe_url}}. Save as template keeps the design. Test & preview sends it to one address. HTML is there when you already have markup.
4. Send from the API
Use the send endpoint with channels set to ["email"]. Email does not combine with push, WhatsApp, or an A/B test. payload.title and payload.message are still required; the inbox uses payload.email:
curl -X POST https://push.example.com/api/v1/push/send \
-H "x-app-id: app_49e692ad" \
-H "x-api-key: <your-api-key>" \
-H "x-tenant-id: <your-tenant-id>" \
-H "Content-Type: application/json" \
-d '{
"campaignName": "Spring sale",
"type": "simple",
"channels": ["email"],
"payload": {
"title": "Spring sale",
"message": "20% off this week",
"email": {
"subject": "Spring sale: 20% off this week",
"preheader": "Ends Sunday",
"html": "<h1>Hello {{email}}</h1><p><a href=\"https://shop.example.com/sale\">Shop now</a></p>"
}
}
}'{{email}}is replaced with the subscriber's address.{{unsubscribe_url}}places the unsubscribe link yourself. Without it, a footer with the unsubscribe link and your mailing address is added.- Every
httpandhttpslink is tracked for clicks, and an image pixel records opens. - Every email carries
List-Unsubscribeand one-clickList-Unsubscribe-Postheaders, so Gmail and Yahoo show their own unsubscribe button. senderIdpicks a sender. Without it, the app's default sender is used.segmentIdlimits the audience.excludeSegmentIdremoves a second segment from it. Omit both to reach every subscribed address.scheduleAtis an ISO 8601 time. Without it, the campaign sends immediately.
Add a subscriber from your server, after they agree:
curl -X POST https://push.example.com/api/v1/email/api/subscribers \
-H "x-app-id: app_49e692ad" \
-H "x-api-key: <your-api-key>" \
-H "x-tenant-id: <your-tenant-id>" \
-H "Content-Type: application/json" \
-d '{ "email": "name@example.com", "externalUserId": "user-42" }'The same API key headers are used for both calls. From the apps, call PushFyre.setEmail only after consent. Webhooks receive email.delivered, email.opened, email.clicked, email.bounced, email.complained and email.unsubscribed.
Report
Each email campaign has a report with these counts:
| Count | Meaning |
|---|---|
| Sent | Amazon SES accepted the message. |
| Delivered | The recipient's mail server accepted it. |
| Unique opens | Readers whose mail app loaded the tracking image. Some mail apps load images automatically, which counts as an open. |
| Unique clicks | Readers who selected a tracked link. |
| Bounced | A permanent bounce. The address is added to the suppression list. |
| Spam reports | The reader marked the message as spam. The address is unsubscribed and suppressed. |
| Unsubscribed | The reader used the unsubscribe link or the mail app's unsubscribe button. |
The same events are posted to a webhook you register under Developers.
Suppressions
Settings → Email settings → Suppressions lists bounced addresses, spam reports and addresses you added by hand. A campaign skips every suppressed address and shows the number as Suppressed.
Acceptable use policy
Over the last 7 days and at least 500 sent emails, a bounce rate above 5% or a spam complaint rate above 0.08% pauses email for the app. The Acceptable use policy page shows the rates and the reason, and an organization owner or admin can resume sending after cleaning the list.
Warm-up
A new app sends up to 300 emails on its first day, and the daily allowance grows by a fifth each day. Email over the day's allowance is queued for the next day. The page also shows today's progress.
Frequency capping
Email has its own cap, separate from push, under Acceptable use policy → Email frequency capping.
Follow-ups
An email report can start a follow-up to people who are still subscribed and who were sent the message, confirmed it, did not confirm it, clicked, did not click, or failed. Unsubscribed addresses are left out.
Plan
Free does not include email. Starter includes 10,000 emails a month and Professional includes 50,000. Sending stops for the rest of that plan period when the allowance is used. If a plan does not include email, the portal keeps the page open and asks you to choose a plan that does.