Cursor email

HTML Email Rendering Broken Across Email Clients

HTML emails generated by your Cursor-built application look great in the preview or in one email client, but are completely broken in others. Layouts collapse in Gmail, images don't load in Outlook, fonts revert to defaults in Yahoo Mail, and dark mode inverts your carefully chosen colors.

HTML email rendering is stuck in 1999 — email clients use wildly different HTML/CSS engines. Outlook uses Microsoft Word's HTML renderer, Gmail strips most CSS, and Apple Mail has its own quirks. Cursor generates modern HTML/CSS that works perfectly in browsers but violates almost every constraint of email client rendering.

The issue affects your brand perception and functionality. Broken emails look unprofessional, can obscure important content like verification links, and may even trigger spam filters that look for malformed HTML.

Error Messages You Might See

Email looks different in Gmail vs Outlook Images not showing in email Layout broken in Outlook desktop Email landing in spam folder Fonts rendering differently across email clients
Email looks different in Gmail vs OutlookImages not showing in emailLayout broken in Outlook desktopEmail landing in spam folderFonts rendering differently across email clients

Common Causes

  • External CSS stylesheets — Cursor linked to an external CSS file or used <style> blocks in the head, which Gmail and many clients completely strip
  • Modern CSS properties — Flexbox, Grid, CSS variables, and media queries are unsupported in most email clients, especially Outlook
  • Div-based layout — Cursor generated div-based layouts instead of table-based layouts, which are the only reliable layout method for email
  • Images without alt text or dimensions — Images block loading by default in many clients. Without explicit width/height attributes, layouts break when images are hidden
  • Web fonts and custom fonts — Custom font imports are ignored by most email clients, causing text to render in fallback system fonts with different sizing
  • Dark mode not handled — Email clients' dark mode inverts colors unpredictably, making light text on light backgrounds or dark text on dark backgrounds

How to Fix It

  1. Use inline CSS only — Move all styles to inline style attributes on each HTML element. Use a CSS inliner tool like juice or Premailer to automate this conversion
  2. Use table-based layouts — Replace all div layouts with nested <table> elements. Use role="presentation" for accessibility. This is the only reliable cross-client layout method
  3. Use a tested email framework — Replace Cursor's custom HTML with a battle-tested email framework like MJML, React Email, or Maizzle that compiles to compatible HTML
  4. Add explicit image dimensions — Always include width and height attributes on img tags, and add alt text so content makes sense when images are blocked
  5. Test across email clients — Use Litmus or Email on Acid to preview your emails in 90+ email clients before sending
  6. Handle dark mode explicitly — Add @media (prefers-color-scheme: dark) styles and use the color-scheme meta tag. Provide both light and dark versions of logos

Real developers can help you.

Jen Jacobsen Jen Jacobsen I’m a Full-Stack Developer with over 10 years of experience building modern web and mobile applications. I enjoy working across the full product lifecycle — turning ideas into real, well-built products that are intuitive for users and scalable for businesses. I particularly enjoy building mobile apps, modern web platforms, and solving complex technical problems in a way that keeps systems clean, reliable, and easy to maintain. Stanislav Prigodich Stanislav Prigodich 15+ years building iOS and web apps at startups and enterprise companies. I want to use that experience to help builders ship real products - when something breaks, I'm here to fix it. MFox MFox Full-stack professional senior engineer (15+years). Extensive experience in software development, qa, and IP networking. Yovel Cohen Yovel Cohen I got a lot of experience in building Long-horizon AI Agents in production, Backend apps that scale to millions of users and frontend knowledge as well. hanson1014 hanson1014 Full-stack developer experienced in fixing and deploying AI-generated apps from Lovable, Bolt.new, Cursor, and Replit. I specialize in debugging Supabase integration issues (auth flows, RLS policies, database connections), fixing broken deployments, resolving routing/blank screen problems, and cleaning up messy React/Vite codebases. I also build production apps with the Claude API and have shipped a Mac desktop dev tool (Nexterm from scratch. Based in Hong Kong, fast turnaround. Basel Issmail Basel Issmail ’m a Senior Full-Stack Developer and Tech Lead with experience designing and building scalable web platforms. I work across the full development lifecycle, from translating business requirements into technical architecture to delivering reliable production systems. My work focuses on modern web technologies, including TypeScript, Angular, Node.js, and cloud-based architectures. I enjoy solving complex technical problems and helping teams turn product ideas and prototypes into working platforms that can grow and scale. In addition to development, I often collaborate closely with product managers, business analysts, designers, and QA teams to ensure that solutions align with both technical and business goals. I enjoy working with startups and product teams where I can contribute both as a hands-on engineer and as a technical partner in designing and delivering impactful software. Simon A. Simon A. I'm a backend developer building APIs, emulators, and interactive game systems. Professionally, I've developed Java/Spring reporting solutions, managed relational and NoSQL databases, and implemented CI/CD workflows. Richard McSorley Richard McSorley Full-Stack Software Engineer with 8+ years building high-performance applications for enterprise clients. Shipped production systems at Walmart (4,000+ stores), Cigna (20M+ users), and Arkansas Blue Cross. 5 patents in retail/supply chain tech. Currently focused on AI integrations, automation tools, and TypeScript-first architectures. Jared Hasson Jared Hasson Full time lead founding dev at a cyber security saas startup, with 10 yoe and a bachelor's in CS. Building & debugging software products is what I've spent my time on for forever Matthew Jordan Matthew Jordan I've been working at a large software company named Kainos for 2 years, and mainly specialise in Platform Engineering. I regularly enjoy working on software products outside of work, and I'm a huge fan of game development using Unity. I personally enjoy Python & C# in my spare time, but I also specialise in multiple different platform-related technologies from my day job.

You don't need to be technical. Just describe what's wrong and a verified developer will handle the rest.

Get Help

Frequently Asked Questions

Why can't I use modern CSS in emails?

Email clients use different rendering engines than browsers. Outlook uses Microsoft Word's HTML renderer (which barely supports CSS2), Gmail strips all CSS from the head and only keeps inline styles, and each client has its own quirks. Stick to inline CSS, table layouts, and basic CSS properties.

What is the best way to create HTML emails?

Use a purpose-built email framework: MJML (markup language that compiles to compatible HTML), React Email (for React developers), or Maizzle (Tailwind CSS for emails). These frameworks handle cross-client compatibility so you don't have to.

Related Cursor Issues

Can't fix it yourself?
Real developers can help.

You don't need to be technical. Just describe what's wrong and a verified developer will handle the rest.

Get Help