Skip to content
Bugwise
Menu
Features & Flows

Email Notifications

Test the emails an app sends, from the event that triggers them to the inbox, covering transactional and marketing emails, content and data, links, rendering across email clients, timing and duplicates, unsubscribing, and safe test inboxes.

35–55 min intermediate Mobile & web

Anna orders groceries from FreshCart. Within a minute she gets three emails: “Your order is on its way” (before she even got a confirmation), then “Order confirmed”, twice. The receipt says €38.80, but her card was charged €42.30. And at the bottom of the confirmation, the delivery time reads {{delivery_slot}}.

Emails are easy to forget in testing because they happen outside the app: in a queue (a waiting line of emails to send), on a mail server, in someone’s inbox. But for users, they’re part of the product. Receipts, password links, delivery updates and security warnings all arrive by email, and a broken one is seen, screenshotted and shared. This lesson covers how to test them. Phone notifications for the same events are covered in Push Notifications.

Part Not started

How app emails work

Two kinds of email

TransactionalTransactional emailAn email sent because of something the user did or something that happened to their account, like a receipt or a password reset.Open in glossary →Marketing
Sent becauseThe user did something, or something happened to their accountThe company wants to promote something
ExamplesOrder confirmation, password reset, receipt, “new login from Chrome”, delivery updateWeekly deals, newsletter, “We miss you”
User consentNot needed; it’s part of the serviceNeeded (in the EU and many other countries, before the first email). Everywhere, the user must be able to opt out at any time
Unsubscribe linkUsually not, or only for optional typesRequired in every email
TimingImmediately, or at an exact momentCampaigns, often in batches

Mixing them up causes bugs in both directions: an unsubscribe that also stops receipts and password links, or deals sent to a user who opted out.

From event to inbox

  1. An event happens: an order is placed, a password reset is requested, a courier picks up a delivery.
  2. The server picks a template (email templateEmail templateThe reusable layout and text of an email, with placeholders that are filled with each user's data.Open in glossary →): a ready-made email with placeholders like {{first_name}}. The server fills them with data: name, items, totals, links.
  3. The email goes to a queue, where it waits its turn, and then to an email service provider: a company that sends email for other companies, such as SendGrid, Postmark, Mailgun or Amazon SES.
  4. The provider delivers it, and the receiving mail server decides: inbox, spam or rejected.
  5. The user’s email app shows it, and each app (Gmail, Outlook, Apple Mail) renders it a little differently.

Each step can fail on its own. A wrong event, wrong data, a stuck queue, a spam folder or a broken layout all look the same to the user: “I didn’t get a proper email.”

Never email real people from a test environment

Test environmentsEnvironmentA setup of servers, data and configuration where the software runs, such as dev, staging or production.Open in glossary → often contain copies of real data. If stagingStagingA pre-release environment that mirrors production as closely as possible.Open in glossary → sends emails, real customers can get test receipts. Teams prevent this with:

Ask which one your team uses before you trigger your first email.

Check this part

  1. Which email must always have an unsubscribe link?

  2. Why do teams use a test inbox or an allowlist on staging?

Transactional and marketing emails, the path from an event to the inbox, and why testers need their own test inboxes.

Part Not started

What to check in every email

Go through an email from the outside in, the way a user meets it:

CheckWhat can go wrong
TriggerSent for the wrong event, not sent at all, or sent twice
RecipientWrong user, old email address, or a deleted account
Sender name and reply-to (the address a reply goes to)“noreply@staging” as the sender; the email says “reply to this email” but replies go nowhere
Subject and preheaderThe preheaderPreheaderThe short preview text shown after an email's subject in the inbox list.Open in glossary → (the grey preview line after the subject) shows “View in browser” or leftover template text
Placeholders{{first_name}}, “Hi ,”, “null”, “undefined”
DataTotals, items, dates and times that don’t match the order; currencies and time zones
LinksPointing to the wrong environment (a staging link in a real customer’s email), broken, expired, or opening the website instead of the app (see Deep Links)
ImagesMissing, huge, without alt textAlt textA text description of an image that screen readers read aloud.Open in glossary →, or carrying text that disappears when images are blocked (some email apps block images until the user allows them)
Plain-text version (a copy without design, shown by simple email apps, some smartwatches, and for people who turn off designed emails)Missing, or a wall of raw HTML code
Rendering (how the email is drawn on screen)Broken layout in some email apps, on small screens, or in dark modeDark modeA display setting that uses light text on dark backgrounds.Open in glossary →
LanguageWrong language for the user, mixed languages, untranslated subject
FooterCompany details, why the user gets the email, and for marketing, a working unsubscribe

Rendering: one email, many inboxes

Websites run in a handful of browsers. Emails run in dozens of email apps (also called email clients), and some of them understand far less of the code that web pages are built from (HTML and CSS) than any modern browser. So a layout that looks perfect in one app can fall apart in another. Click through the views:

📬 One email, four inboxes

The same FreshCart order confirmation, as it typically renders in different situations.

FreshCart · Your order #48213 is confirmed

freshcart

Thanks, Anna!

Your groceries arrive tomorrow between 18:00 and 19:00.

6 items

€38.80

Delivery

€3.50

Total: €42.30

Track your order

FreshCart d.o.o. · You get this email because you placed an order.

As designed: what to notice

  • This is what the designer sees in the browser preview. Real inboxes rarely show exactly this, so it’s the starting point, not the result.

You don’t need to test every email app by hand. Check the ones your users actually use (the email service provider’s statistics can tell you), plus dark mode and a small phone screen. Teams that send a lot of email often use rendering tools such as Litmus or Email on Acid, which show screenshots from many clients at once.

Check this part

  1. The order email shows a total of €38.80, and the receipt adds up correctly. The order was €42.30. Is it a bug?

  2. Why should important text in an email not be part of an image?

What to check in every email: trigger, recipient, sender, subject and preheader, data, placeholders, links, images, plain text, rendering, dark mode and language.

Part Not started

Timing, order and duplicates

Emails are sent by background jobs: tasks the server runs on its own, a moment (or days) after the user’s action. So they have bugs you won’t see on a screen:

When emails must stop

SituationExpected
The user turned off marketing emailsNo marketing; transactional emails still arrive
The user unsubscribed from a linkSame as above, applied quickly, and visible in the app’s settings
The email bounces: the receiving server sends it back, for example because the address doesn’t existThe provider stops sending to that address; the app may ask the user to update it
The account was deletedNothing more after the final “your account was deleted” confirmation, not even scheduled emails that were already planned (see Account and Settings)
The user changed their emailNew emails go to the new address only, once it’s verified

Check this part

  1. 'Your order is on its way' arrives two seconds before 'Order confirmed'. What kind of bug is it?

  2. How do you test a 'trial ends in 3 days' email without waiting days?

Duplicates, wrong order, delays, time zones, scheduled emails, quiet hours, and emails that must stop after unsubscribing, bouncing or deleting the account.

Part Not started

What usually goes wrong

BugWhat users see
Placeholder not filled“Hi {{first_name}},” or “Delivery: null”
Wrong dataA total, date or item that doesn’t match the order
Duplicate emailThe same receipt twice
Wrong order“Shipped” before “Confirmed”
Staging linksButtons that open a test server, or nothing at all
Ignored preferencesMarketing after opting out, no unsubscribe link
Broken renderingLayout falls apart in one email app or in dark mode
Wrong languageA Serbian user gets the English template

One habit catches several of these: before you tap a button in an email, check where it leads. Hover over it on a computer, or long-press it on a phone, to see the address.

Practice: find the bugs in FreshCart’s emails

Anna just placed order #48213. Here’s her test inbox. Read the account details at the top, then open each email. Hover over or tap the buttons to see where they link. Six bugs are waiting.

🐞 Bug hunt: FreshCart test inbox

This demo has 6 hidden bugs. Explore it like a tester, then check your findings.

Found0/6

Test account: anna+fc1@example.com

Order #48213 placed in the app at 14:02. Charged: €42.30 (6 items €38.80 + delivery €3.50). Delivery: tomorrow 18:00–19:00. Marketing emails: off.

📥 Test inbox4 messages
  1. 1

    Hint: Look at the list of emails and their times.

  2. 2

    Hint: Compare the times of the first emails.

  3. 3

    Hint: Open the confirmation and read the Delivery line.

  4. 4

    Hint: Compare the email total with the account details at the top.

  5. 5

    Hint: In the confirmation, hover over or tap Track your order.

  6. 6

    Hint: Compare the account details with the last email, and check its footer.

Check this part

  1. How do you check where an email button links, without opening it?

  2. The user has marketing emails off, and a deals email arrives. What do you report?

The email bugs teams ship again and again, and a FreshCart test inbox to find six of them.

Part ProNot started

Example test cases

Before you start, you need:

TC-EML-001Order confirmation is sent once, with correct data

Preconditions

  • Test inbox for anna+fc1@example.com
  • Cart with 6 items (€38.80), home delivery (€3.50)

Steps

  1. Place the order and pay
  2. Open the test inbox

Expected result

Exactly one "Order confirmed" email within 1 minute: correct items, delivery fee, total €42.30, the chosen delivery slot, Anna's name, no placeholders.

TC-EML-002No duplicate email when the request is retried

Preconditions

  • Network throttled to Slow 3G or a proxy delaying the order request

Steps

  1. Place the order
  2. Let the app retry after the timeout

Expected result

One order and one confirmation email.

TC-EML-003All links point to the right environment and open the right place

Steps

  1. Open the confirmation on a phone with the app installed
  2. Tap every link and button
  3. Repeat on a computer

Expected result

All links use https and the domain of the environment that sent the email (in production: the production domain, never a staging address). Track your order opens the order in the app on the phone and the order page on the computer.

TC-EML-004Email renders in the main clients and dark mode

Steps

  1. Open the confirmation in Gmail (web and app), Apple Mail and Outlook
  2. Repeat with dark mode on
  3. Repeat with images blocked

Expected result

Readable layout everywhere, logo visible in dark mode, all important text readable without images.

TC-EML-005Marketing opt-out stops marketing only

Preconditions

  • Marketing emails turned off in the app settings

Steps

  1. Trigger a test campaign to all users
  2. Request a password reset
  3. Place an order

Expected result

No campaign email. The password reset and order confirmation still arrive.

TC-EML-006Unsubscribe link works without logging in

Steps

  1. Open a marketing email
  2. Tap Unsubscribe
  3. Open the app's notification settings

Expected result

A confirmation page without a login, marketing is off in the app too, and no more marketing emails arrive.

TC-EML-007Delivery time is shown in the user's time zone

Preconditions

  • Account in Belgrade (Europe/Belgrade); server in UTC

Steps

  1. Order with delivery slot 18:00–19:00 local time
  2. Open the confirmation

Expected result

The email says 18:00–19:00, not 16:00–17:00 or 17:00–18:00.

TC-EML-008Email in the user's language

Preconditions

  • App language set to Serbian

Steps

  1. Place an order
  2. Open the confirmation

Expected result

Subject, preheader, body and footer are in Serbian, with local date and currency formats.

Tip: click a test case to expand it.

Check this part

  1. Why test the order confirmation with a slow or retried request?

  2. After opting out of marketing, which emails should still arrive?

Email test cases with exact steps and expected results.

The rest of this lesson is in Bugwise Pro

The last parts of every lesson are part of Bugwise Pro. Sign in to unlock them if you have it.

Part ProNot started

Tools and tricks

  • Test inbox (Mailpit, MailHog, Mailtrap): every email the test environment sends lands here. You can view the designed (HTML) version, the plain text, the raw source and the headers (the technical lines at the top of every email: sender, recipient, date, the route it took), and often check links and spam scores.
  • Plus addresses: anna+fc1@, anna+fc2@, one per test account, all in one inbox. Some sign-up forms wrongly reject the +, which is a bug worth reporting (more in Forms and Validation).
  • Provider activity log: SendGrid, Postmark and others show each email’s status: sent, delivered, bounced, opened, marked as spam. When a user says “I never got it”, this is where you look first. Testers often don’t have a login for it: ask for read access, or ask a developer to look the address up.
  • View the source (optional, for digging deeper): in most email apps, “Show original” or “View source” shows the HTML and the headers. It’s where you find the real link addresses and the real sender address.
  • Rendering tools (Litmus, Email on Acid) show the email in many apps at once.
  • Spam checks: services like mail-tester.com give a score and say why an email might land in spam.
  • Sender authentication. Three settings on the company’s domain, called SPF, DKIM and DMARC, prove to receiving mail servers that the company really may send email from its address. When they’re missing or wrong, emails land in spam or are rejected. Developers set them up; a tester only needs to know they exist, and to suspect them when a whole environment’s emails go to spam.
Dev note: SPF, DKIM and DMARC

All three are DNS records of the sending domain. SPF lists which servers may send for the domain, DKIM signs each email so changes can be detected, and DMARC says what to do when the checks fail and where to send reports. Gmail, Yahoo and Outlook.com require them for companies that send a lot of email. In the raw headers, look for spf=pass, dkim=pass and dmarc=pass in the Authentication-Results line.

Check this part

  1. A user says they never got the password reset email. Where do you look first, after their spam folder?

  2. What do SPF, DKIM and DMARC do?

Test inboxes, plus addresses, provider logs, raw source and headers, rendering and spam checks, and the basics of SPF, DKIM and DMARC.

The rest of this lesson is in Bugwise Pro

The last parts of every lesson are part of Bugwise Pro. Sign in to unlock them if you have it.

Checklist

Email notifications checklist

0 of 12 checked

Key takeaways

  • Transactional emails are part of the service; marketing emails need consent and an unsubscribe link. Don’t mix them up.
  • Test emails in a test inbox or with an allowlist, so real customers never get test emails.
  • Check every email against the event that triggered it: data, totals, times, language, placeholders and links.
  • Emails render differently in every email app, with images blocked and in dark mode.
  • Background jobs cause duplicates, wrong order and delays. Check the timestamps.
  • Preferences, unsubscribing and account deletion must stop exactly the right emails.

Finished this page?Nice work, this page is complete!

Mark it as done to track your progress. It's saved in this browser, no account needed.

Its cards are now in your Bites review ⚡
Esc

Type to search the whole site.