Email HTML and inbox testing
Build a conservative HTML shell and test real messages across inboxes.
Use this starter and test workflow when building HTML outside the dashboard. Configure subjects, message-specific variables, layouts, images and activation in Email templates and delivery. That guide also covers compatible buttons, fonts, image sizing and footer ownership.
Build a complete HTML shell
Compile an email framework's output to HTML before pasting it into the editor. A newsletter tool's exported HTML can also be a starting point; check its links, tracking and asset hosting before reuse. When hand-coding, use presentation tables and inline essential styling. This shell supplies a document language, hidden preheader, fluid wrapper, fixed desktop fallback and spacer row:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
<style>
@media (prefers-color-scheme: dark) {
.email-content { background-color: #101828 !important; color: #ffffff !important; }
}
</style>
</head>
<body style="margin:0;padding:0;">
<div style="display:none;max-height:0;overflow:hidden;mso-hide:all;">
Your requested account update is ready.
</div>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="center">
<!--[if mso]><table role="presentation" width="600" align="center" cellpadding="0" cellspacing="0" border="0"><tr><td><![endif]-->
<table role="presentation" class="email-content" width="100%" align="center"
cellpadding="0" cellspacing="0" border="0"
style="max-width:600px;background-color:#ffffff;color:#20262c;">
<tr><td style="padding-top:24px;padding-bottom:24px;padding-left:20px;padding-right:20px;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:24px;">
<h1 style="font-size:24px;line-height:32px;">Account update</h1>
<p>Insert your message body and its action button here.</p>
</td></tr>
<tr><td height="20" style="font-size:1px;line-height:20px;"> </td></tr>
</table>
<!--[if mso]></td></tr></table><![endif]-->
</td></tr>
</table>
</body>
</html>Replace the sample copy and language, add the approved footer and use the Outlook-compatible CTA recipe for the actual action. A shared Unidy layout needs exactly one Liquid yield position for the message body; follow layouts and components when adapting this shell. Do not nest a complete document inside another layout.
Migrate older template examples
Use the selected message's Variables list as the authority for spelling and availability. Older examples use user_name, login_link and confirmation_url; do not paste these into another message without checking them. Current messages can expose different names, such as first_name, link or confirmation_link. A password-reset message can expose reset_password_url. These are message-specific inputs, not aliases that work everywhere. Verify the rendered value in both the ordinary link and any VML fallback.
Use absolute HTTPS URLs for externally hosted images. The current editor can also offer image uploads; follow its image lifecycle rather than assuming all assets must be externally hosted. Check image URLs without an authenticated browser session.
Test the delivered message in three stages
- Capture in development or staging. Have the environment owner route test mail to an SMTP sandbox, such as a local Mailpit/MailHog installation or an approved hosted sandbox. Trigger the intended flow with synthetic data. Check that the correct message and language fire, placeholders resolve, and the delivered HTML and URLs are intact. A sandbox captures mail; it does not prove how a recipient's inbox renders it.
- Preview across renderers. Use your approved cross-client preview service, such as Litmus or Email on Acid, for broad screenshots in light and dark mode. For authentication messages, include the actual code/link flow in automated tests where your test tooling supports it. Review current tool capabilities and terms before adoption.
- Check real inboxes and devices. Send the saved message to controlled test accounts. Open it on mobile and desktop, including classic Windows Outlook if your audience uses it. Test the intended action with disposable data; preview links and sample tokens do not establish that the real workflow succeeds.
| Inbox or device | What to inspect |
|---|---|
| Apple Mail on iPhone and macOS | Mobile widths, image sizing, automatic colour changes and dark mode. |
| Gmail web and mobile | CSS handling, images blocked and clipping of the delivered HTML. |
| Classic Outlook on Windows | Fixed-width fallback, presentation tables, VML buttons, spacing and line-height. |
| New Outlook and Outlook.com | Treat these as separate renderers from classic Outlook. |
| Yahoo Mail | Layout and link rendering when relevant to your audience. |
| GMX, Web.de and T-Online | Include regional inboxes used by your German-speaking recipients. |
Record a release result
For each changed message and language, record the test environment, saved subject/body/layout revision, trigger, test time, clients/devices and results. Recheck after every template change, including shared-component changes.
- Confirm readable text and buttons in light and dark mode, with images blocked, at desktop width and at mobile widths of 480 pixels or less.
- Check meaningful image alt text, font fallbacks, document language and preheader. Essential content must remain readable without external fonts or background images.
- Verify every absolute action, privacy, imprint and support link. Review organization details and message purpose with the content owner; keep account-access messages free of advertising. Coordinate newsletter double opt-in and unsubscribe behavior through newsletter configuration.
- Check the size of the delivered HTML and that the complete message and footer survive inbox clipping. Aim below the approximately 102 KB boundary discussed in the authoring guide; a small editor source alone does not establish the final delivered size.
- If mail is missing or classified as spam, ask the sending-domain owner to inspect delivery evidence and SPF, DKIM and DMARC configuration. A rendering preview cannot establish deliverability. Use approved diagnostic tools with synthetic messages if needed.
Complete staging QA before promoting the approved template, layout, components and translations. Follow the activation and saving rules: saving an already enabled template or a shared component can immediately affect outgoing messages. Test the intended production workflow after the approved release.