Personalization Beyond First Name: Advanced Merge Tags
Go beyond {{first_name}} with conditional content blocks, custom field merge tags, and dynamic sections that adapt to each subscriber.
Unlike websites, which rely on modern, standards-compliant browsers, emails are rendered by dozens of different clients — each with its own quirks, supported CSS properties, and layout engines. What looks perfect in Gmail can fall apart in Outlook 2019. Understanding these differences is essential for anyone building HTML email templates.
Gmail strips <head> styles and ignores embedded stylesheets unless you use <style> blocks within the <body>. It also clips emails that exceed ~102KB of HTML.
Key Gmail behaviors:
background-image in many contextsOutlook 2007–2019 uses Microsoft Word as its HTML rendering engine — not a browser. This is the single largest source of email rendering headaches.
Common Outlook issues:
| Issue | Cause | Fix |
|---|---|---|
| Gaps between images | Word adds default margins | display: block on <img> |
| Broken multi-column layouts | No Flexbox/Grid support | Use <table> for layout |
| Background images ignored | Word limitation | Use VML conditionals |
max-width ignored |
Word layout engine | Set fixed pixel widths |
VML fallback for background images in Outlook:
<!--[if gte mso 9]>
<v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false"
style="width:600px; height:200px;">
<v:fill type="tile" src="https://example.com/bg.jpg" color="#ffffff"/>
<v:textbox inset="0,0,0,0">
<![endif]-->
<div style="background-image: url('https://example.com/bg.jpg');">
<!-- content -->
</div>
<!--[if gte mso 9]></v:textbox></v:rect><![endif]-->
Apple Mail has the best CSS support of the major clients. It supports Flexbox, CSS animations, and even some CSS Grid. However, since Apple's Mail Privacy Protection (MPP) launched in 2021, it pre-fetches images — which inflates open rate data (see our Analytics guide for details).
Apple-specific considerations:
<td> elements in pixels, not percentages alonealt text on images — many clients block images by defaultStick to these properties for maximum compatibility:
/* Safe to use across all major clients */
font-family, font-size, font-weight, font-style
color, background-color
margin, padding (with caution in Outlook)
border, border-radius (ignored in Outlook)
text-align, text-decoration
width, height (in px on block elements)
Before every campaign send in AcelleMail:
Building with compatibility in mind from the start saves far more time than debugging rendering issues after complaints roll in from subscribers.
Go beyond {{first_name}} with conditional content blocks, custom field merge tags, and dynamic sections that adapt to each subscriber.
The preheader is the second line of text subscribers see before opening your email. Learn what it is, how to set it, and how to write preheaders that boost open rates.
Automatically send your latest blog posts to subscribers using AcelleMail's RSS-to-email campaign feature. Set it up once and let it run.
Discover the best send times by industry, how to use timezone-aware scheduling in AcelleMail, and strategies to maximize open rates globally.
Automatically send your latest blog posts to subscribers using AcelleMail's RSS-to-email campaign feature. Set it up once and let it run.
Go beyond {{first_name}} with conditional content blocks, custom field merge tags, and dynamic sections that adapt to each subscriber.
The preheader is the second line of text subscribers see before opening your email. Learn what it is, how to set it, and how to write preheaders that boost open rates.
AcelleMail is the self-hosted email marketing platform you control end-to-end.
View Pricing