Sub topic 14
Testing across clients and devices
This chapter assumes you can build a table-based, inline-styled template, and that you know what media queries, conditional comments, and a preheader do. Here you plan how to check that template before it goes to a real list.
Why testing is its own step
Email clients do not share one rendering engine. Desktop Outlook uses Word, Gmail strips or rewrites some CSS, and Apple Mail uses a full WebKit engine. A template that looks right in your browser can break in any of them. You can't catch this by reading the code, so you need to look at the rendered result in many places.
Build a test matrix
You can't test every client. Choose the ones your audience actually uses, then list them in a matrix. Your email service provider's analytics usually show opens by client and device.
| Group | Examples | What usually breaks |
|---|---|---|
| Desktop Outlook (Word engine) | Outlook 2016 to 2021 on Windows | Widths, padding, background images, buttons |
| Gmail | Web, Android app, iOS app | Style rewriting, clipped messages, no embedded styles in some account setups |
| Apple Mail | macOS, iOS | Mostly reliable, dark mode colors |
| Others | Yahoo, Samsung Mail, Outlook.com | Media query support, color inversion |
Mark each cell as light mode, dark mode, images on, and images off. Keep the matrix short enough that you will actually run it.
Use tools, then real devices
Preview services render your HTML in screenshots of many clients at once. They are fast, and they show you where the layout fails. They are still approximations, so confirm important cases on real devices.
- Run the template through a preview service and review the Outlook, Gmail, and Apple Mail screenshots.
- Send a test message to real accounts you control: one Gmail, one Outlook, and one Apple Mail address.
- Open each message on at least one phone and one desktop.
- Switch the device to dark mode and open it again.
- Turn off image loading and open it once more.
What to check in each client
Use the same checklist every time so results can be compared.
- Layout: Columns stack on phones where media queries work, and the single column still reads well where they don't.
- Outlook: The container is 600px wide, and padding and buttons look correct.
- Typography: Body text is readable without zooming, and links are easy to tap.
- Buttons: The color and label stay visible with images off.
- Images: Alt text shows when images are blocked, and the layout does not collapse.
- Dark mode: Text stays readable and logos do not vanish against a dark background.
- Preheader: The inbox preview shows your chosen text, not "View in browser".
- Accessibility: The
langattribute is set, tables haverole="presentation", and contrast is sufficient. - Links: Every link goes to the right place, and tracking parameters are correct.
Common problems and fixes
Gmail clips messages when the HTML is larger than about 102 KB, and it hides the rest behind a "View entire message" link. Check the file size, and remove unused CSS and extra whitespace if you are close.
If the preheader shows the wrong text, make sure the hidden block is the first element in the body.
If Outlook ignores your widths, check that the conditional-comment table wraps the fluid container.
Before you send
Send one final test from the same system you will use for the real send. Links, tracking, and unsubscribe handling can change when the provider processes the message. Then check that final copy against your checklist one more time.
Exercise
Your template looks correct in a preview service, but a colleague reports that the columns do not stack on their phone, which uses the Gmail app with a non-Google email account. What should you do, and what does this tell you about the template design?
Show answer
Reproduce the problem by sending a test message to a similar account and opening it in the Gmail app on a phone. The likely cause is that this client does not apply the embedded media query, so the stacking never happens. The fix is to make the layout work without it. Use a fluid or hybrid structure with max-width so the columns still display acceptably, and treat the media query as an enhancement. The case shows why previews are not enough and why real-device checks belong in the routine.
Exercise
List three checks you should repeat with images turned off, and say why each matters.
Show answer
Check that the alt text appears, because it carries the meaning of the missing image. Check that the buttons keep their background color and label, because a bulletproof button should not depend on images. Check that the layout does not collapse, because blocked images with no set dimensions can shift or break the structure.