Email template design sounds scary. Responsive layouts. Mobile optimization. HTML. Itâs the technical excuse most SMEs use to delay their newsletter.
âOur templates donât look right on mobile.â
âWe need someone who understands HTML.â
âThis is too complicated.â
Hereâs the truth: Email template design isnât complicated. And you donât need a developer. You need AI.
MJML (Mailjet Markup Language) is a markup language that makes email template creation dead simple. Instead of wrestling with HTML tables and CSS hacks, you write clean, readable code that automatically handles responsive design.
The best part? It compiles into perfect HTML that works on every email clientâOutlook, Gmail, Apple Mail, mobile, you name it.
Hereâs a simple example:
<mjml>
<mj-body>
<mj-container>
<mj-section>
<mj-column>
<mj-text font-size="24px" font-weight="bold">
Welcome to our newsletter!
</mj-text>
<mj-text>
Thanks for signing up. Here's what to expect...
</mj-text>
</mj-column>
</mj-section>
</mj-container>
</mj-body>
</mjml>
Thatâs it. Simple, clean, and it automatically works on mobile and desktop.
Hereâs where it gets powerful: ChatGPT is really good at writing MJML code. You just describe what you want, and it generates production-ready templates.
Try asking ChatGPT or Claude something like:
âWrite an MJML email template for a product launch announcement. Include a headline, featured image, product description, and a call-to-action button.â
They will generate complete MJML code you can use immediately. It handles responsive design, mobile optimization, and email client compatibilityâall automatically.
Step 1: Ask ChatGPT or Claude for MJML code
Be specific about what you want:
The more detail you provide, the better the template.
Step 2: Copy the generated code
ChatGPT and Claude output complete, working MJML code. Copy the entire thing.
Step 3: Test it at mjml.io
Step 4: Customize for your brand
Change colors, text, images, and button links to match your brand. MJML is easy to edit:
<!-- Change the color -->
<mj-button background-color="#FF6B6B">Click Here</mj-button>
<!-- Add your image -->
<mj-image src="https://yourimage.com/image.jpg" alt="Description" />
<!-- Update text -->
<mj-text>Your custom text here</mj-text>
Step 5: Download and use
The right panel shows the compiled HTML. Copy it and paste into your email platform (Mailjet, SendGrid, Brevo, etc.).
AI is great at MJML because:
MJML is perfect for email because:
Together, theyâre unstoppable.
Example 1: Newsletter Template
Ask ChatGPT: âCreate an MJML weekly newsletter template with space for a featured article, 3 smaller articles, and social links in the footer.â
You get production-ready code with everything positioned perfectly.
Example 2: Promotional Email
Ask ChatGPT: âWrite an MJML Black Friday email with a countdown timer banner, featured products, and urgency messaging.â
MJML handles the responsive layout. Looks great on every device.
Example 3: Welcome Series
Ask ChatGPT for multiple templates: one for confirmation, one for welcome, one for first offer.
All responsive, all professional, all working immediately.
Donât like the first result? Ask ChatGPT for variations:
ChatGPT will regenerate with your changes. Test it at mjml.io each time.
Donât: Wait for a designer. Design your own templates with AI.
Donât: Use HTML email templates. Theyâre fragile and break across email clients.
Do: Use MJML with AI. Responsive, reliable, and ready to use.
Do: Test on mjml.io before sending. See exactly how it looks.
Youâll have a professional, responsive email template in 10 minutes. No designer needed. No expensive template builder. Just AI, MJML, and you.
Professional email design is no longer a barrier to good newsletters. Between AIâs ability to write MJML code and MJMLâs built-in responsive design, anyone can create beautiful emails.
Your newsletter deserves to look great. Now you can make it happen.
Build your complete newsletter in 7 steps: