How to Get Claude Code to Build HTML Emails That Look Good Everywhere
A Claude Code HTML email brief that covers old Outlook, phone screens, dark mode, blocked images and a plain-text version gets you emails that hold up anywhere.
Quick answer
To get a Claude Code HTML email that looks good everywhere, tell Claude Code which inboxes it must work in, including classic Outlook on Windows. Ask for a table-based layout with inline styles, a single column for phones, colors that survive dark mode, alt text on images, and a matching plain-text version. Then test it in real inboxes.
Last checked: October 2026
On this page
Your emails look great in the preview. Then one lands in Outlook with the spacing gone, or opens on a phone in dark mode with the logo missing. This guide is for people building SaaS products, sites and tools with Claude Code. It shows how to brief Claude Code so your Claude Code HTML email holds up in the inboxes your users really use.
You'll get the reasons email behaves differently from a web page, the messages to send Claude Code for welcome emails, receipts and password resets, and a short testing routine. You won't need to learn any email code.
Why is HTML email different from a web page?
Emails use HTML, the same language as web pages, but each email client decides how much of it to show. An email client is the program or website someone reads email in, like Gmail, Apple Mail or Outlook. Some show almost everything a browser would. Others ignore large parts of it.
The biggest gap is classic Outlook for Windows. Microsoft says it uses a Word-based engine to process email HTML, with limited support for standard spacing styles. Microsoft is moving people to a new Outlook that works more like a browser, but says existing installs of classic Outlook will be supported until at least 2029. So your emails need to work in it for years yet.
| Where the email is opened | What to plan for |
|---|---|
| Classic Outlook for Windows | Spacing and background images can break; pictures are blocked until the reader allows them |
| Gmail | Supports style rules and screen-width rules for phones; doesn't support dark-mode style rules |
| Gmail on phones with a non-Google account | Some modern layout styles, such as flexbox, aren't supported |
| Apple Mail | Close to a browser, including dark-mode style rules |
| Gmail, very large emails | Emails over its size limit are cut off, hiding the rest |
That's why email layouts still use tables, which every client understands, and inline styles, meaning design instructions written onto each element instead of kept in one place. Microsoft recommends both for consistent results. Claude Code knows these methods, so ask for them by name.
What goes in a good Claude Code HTML email brief?
A good Claude Code HTML email brief names the inboxes that matter, asks for email-safe building methods, and describes the look you want. Brief Claude Code the way you'd brief a designer who also builds: what the email is for, who reads it, and where it has to work.
Please build our welcome email as HTML that works in Gmail, Apple Mail and both the classic and new Outlook on Windows. Use a table-based layout with inline styles, one centered column no wider than 600 pixels, and a solid background color rather than a background image. Match the colors and logo on our homepage. Show me a preview when it's ready.
Expect a preview of the email. If something looks off, say so in plain words, such as "the heading feels cramped" or "the button should be our green."
Add three more requests to your brief:
- Real text, not pictures of text. Classic Outlook blocks pictures by default until the reader downloads them, so the button label and key details should be real text.
- Alt text on every image. Alt text is a short description that shows when an image doesn't load, and that screen readers read aloud.
- Valid HTML. Microsoft notes that broken HTML can make some clients, including classic Outlook, show the email as a solid black block. Ask Claude Code to check for errors before you test.
Before we test, check the email's HTML for errors, make sure every image has alt text, and make sure the button and all key information are real text, not images.
If you're designing a whole set of emails, set up one shared look first. See getting Claude Code to design your email templates, using Claude Code as an AI email template generator and briefing Claude Code like a copywriter.
How do you make emails work in dark mode and on mobile?
Choose colors that still read well when the inbox changes them, and use one column with large text and buttons.
Dark mode. Most email clients adjust an email's colors in dark mode, and Microsoft says senders can't fully control this. Apple Mail lets an email set its own dark-mode colors, Outlook does in part, and Gmail and Yahoo Mail don't. So aim for a design that survives any colors the inbox applies:
- A logo on a transparent background with some padding, so it doesn't vanish on dark gray
- Strong contrast between text and background
- No meaning carried by color alone, such as "click the green link"
Mobile. Your users may open these emails on a phone, right after they sign up or buy. Gmail supports screen-width rules, which let an email change its layout on small screens, but not every client does. A single column that already fits a phone is the safest start.
Make the email look right in dark mode and on phones. Use a single column, body text of at least 16 pixels, and buttons big enough to tap with a thumb. Add dark-mode colors where the inbox supports them, and keep the logo visible on a dark background. Show me the dark-mode version too.
Why does every email need a plain-text version?
A plain-text version is a copy of the email with only words and full links, sent inside the same email as the HTML. The email standard lists versions from plainest to richest, and each inbox shows the richest one it can display. So someone using a text-only reader, or an inbox that strips formatting, still gets a readable message. It also matters when the details matter: a password reset link or an order number should be equally clear without the design.
For every email you build, include a plain-text version with the same wording. Write links out in full, keep the information in the same order, and leave out anything that only makes sense with images.
How do you test an HTML email before users see it?
Send real test emails to the inboxes your users use, and check them on a computer and a phone, in light and dark mode. Previews help, but only a real inbox shows what your users will see.
- Set up test addresses in Gmail, Outlook and Apple Mail, whichever you can reach.
- Ask Claude Code to send a test of each email. Once an email service such as SimpleSends is connected to Claude Code, it can send test emails from the chat.
- Open each test on a computer and on a phone. Switch your phone to dark mode and look again.
- In classic Outlook, look at the email before downloading pictures. Check the message still makes sense.
- Click every link and button, and check names, dates and amounts are filled in correctly.
- Tell Claude Code what you found, in plain words, and ask for fixes. Send the tests again.
Send test versions of the welcome, password reset and receipt emails to my test addresses, with sample names and amounts filled in. I'll check them on my laptop and phone and tell you what needs changing.
Our guide to testing emails before your users see them has a full pre-launch checklist, and updating your emails by asking Claude Code covers changes later.
When you're ready to send these emails for real, connect SimpleSends and let Claude Code set up sending for your project.
Frequently asked questions
Do I need to know HTML to check the emails Claude Code builds?
No. You judge the email the way your users will: by looking at it. Ask Claude Code for a preview, send test emails to your own inboxes, and describe anything that looks wrong in plain words, such as “the button is squashed on my phone.” Claude Code finds and fixes the cause.
Can Claude Code make my emails match my website?
Yes. Tell Claude Code to use the colors, fonts and logo from your site, or point it to the page whose look you like. Some web fonts don’t show in every inbox, so ask it to pick a similar standard font as a backup. Your emails will then feel like part of the same product.
What is preview text, and should my emails have it?
Preview text is the short line many inboxes show next to or under the subject line, before the email is opened. If you don’t set it, many inboxes use the first words of the email instead, which can be a logo label or a “view in browser” link. Ask Claude Code to write a short, useful preview line for each email.
Should buttons in my emails be images?
It’s better if they aren’t. A button made from text and a background color stays readable when images are blocked, can be read aloud by screen readers, and changes with your wording. Ask Claude Code for text-based buttons with a large tap area, and keep images for your logo and pictures.
How do I change an email’s design after it’s live?
Tell Claude Code what you want changed, for example a new brand color or a shorter heading, and ask it to apply the change to every email that shares the design. Preview it and send yourself a test before it goes out to real users.
Sources (7)
- CSS support (Gmail)(checked October 4, 2026)
- Troubleshoot email rendering issues in Customer Insights - Journeys (Microsoft Learn)(checked October 4, 2026)
- Stages of migration to new Outlook for Windows (Microsoft Learn)(checked October 4, 2026)
- Block or unblock automatic picture downloads in classic Outlook email messages (Microsoft Support)(checked October 4, 2026)
- Can I email: @media (prefers-color-scheme)(checked October 4, 2026)
- Can I email: display:flex(checked October 4, 2026)
- RFC 2046: MIME Part Two, Media Types (section 5.1.4, Alternative Subtype)(checked October 4, 2026)
Keep reading
More on Claude Code + email →Claude Code Email Testing: Check Emails Before Users Do
Claude Code email testing in plain English: send test emails to yourself, check links, names and layout on mobile, then run a pre-launch email checklist.
6 min read
Claude Code Prompts for Email: 20 Messages to Copy
20 Claude Code prompts for email you can copy: set up your SaaS emails, brief each one, fix the design and test it all, written in plain English.
7 min read
How to Automate Emails With Claude Code
Learn how to automate emails with Claude Code: event-triggered and scheduled emails, which ones a SaaS needs, what to say to Claude Code, and how to check them.
7 min read