HTML Emails
HTML is the most common format for transactional and marketing emails. It supports full styling, images, links, and custom layouts:Plain Text Emails
Plain text emails contain no formatting — just characters. While most modern email clients support HTML, some recipients prefer plain text, and certain environments (CLI email clients, screen readers, automated systems) may only display the text version:HTML + Plain Text (Recommended)
Sending both an HTML and a plain text version in the same email is the industry standard. Lettr packages them as a multipart MIME message, and the recipient’s client displays whichever format it prefers. Including both also improves deliverability, since spam filters may flag emails that contain only HTML with no text alternative:AMP Emails
AMP for Email enables interactive content directly inside the inbox — carousels, forms, live data, and accordion menus — without requiring the recipient to click through to a website. Support is currently limited to Gmail, Yahoo Mail, and Mail.ru, so you must always include an HTML fallback:AMP emails require HTML fallback content. Not all email clients support AMP.
Inline CSS Processing
Most email clients strip<style> blocks from the <head>, which breaks CSS class-based styling. Lettr can automatically convert your <style> rules into inline style attributes on each element, ensuring your styles survive even in clients like Outlook and older versions of Gmail. Enable this with the inline_css option:
inline_css: true, the output becomes:
Content Requirements
| Rule | Description |
|---|---|
| Required content | At least one of html, text, or a template |
| Subject length | Maximum 998 characters |
| Recommended | Include both HTML and plain text versions |
CSS Support by Client
Email client CSS support is inconsistent. This reference table covers the most common properties and their support across major clients:| Property | Gmail | Outlook | Apple Mail |
|---|---|---|---|
background-color | Yes | Yes | Yes |
border-radius | Yes | No | Yes |
box-shadow | Yes | No | Yes |
flexbox | Yes | No | Yes |
grid | No | No | Yes |
Best Practices
Use Tables for Layout
Use Tables for Layout
HTML tables remain the most reliable way to create multi-column layouts in email. Outlook’s Word-based rendering engine does not support
flexbox or grid, so table-based layouts are the only way to ensure consistent structure across all major clients.Inline Your Styles
Inline Your Styles
Enable the
inline_css option or write styles inline directly. Many email clients strip <style> tags from the document head, which means class-based CSS will not be applied. Inline styles survive this stripping and render consistently.Always Include Plain Text
Always Include Plain Text
Include a
text version alongside your HTML. Some recipients configure their clients to display plain text only, and spam filters view emails without a text alternative as a negative signal. The text version should contain the same core information as the HTML, without formatting.Test Across Clients
Test Across Clients
Rendering varies significantly between Gmail (web vs mobile), Outlook (Windows vs Mac), Apple Mail, and mobile clients. Send test emails to accounts on each platform and verify that layouts, images, and links display correctly before sending to your full audience.
Keep Images Small
Keep Images Small
Optimize images to reduce file size and loading time. Many mobile users are on slower connections, and large images can cause emails to load slowly or be clipped. Use compressed formats (WebP or optimized JPEG/PNG) and keep total image payload under 1 MB when possible.