html, text, and amp_html. At least one of html or text is required for every send.
HTML Email
HTML is the most common email content format. It allows you to include styling, images, links, buttons, and structured layouts that make emails visually engaging.What HTML Email Supports
- Custom fonts, colors, and spacing
- Inline images and background images
- Clickable buttons and hyperlinks
- Multi-column layouts using tables
- Open and click tracking via tracking pixels and link wrapping
Limitations Compared to Web HTML
HTML email is not the same as HTML on the web. Email clients strip or ignore many features that browsers handle without issue:| Feature | Web HTML | Email HTML |
|---|---|---|
| JavaScript | Fully supported | Completely stripped |
External CSS (<link>) | Supported | Ignored by most clients |
| CSS Flexbox / Grid | Supported | Unreliable — use tables |
<video> / <audio> | Supported | Ignored by most clients |
<form> elements | Supported | Stripped by most clients |
| Media queries | Supported | Partial support |
Sending HTML with Lettr
You can send HTML content in two ways: directly via thehtml parameter, or by using a stored template.
Well-Structured HTML Email Snippet
Lettr’s Topol visual editor generates table-based, inline-styled HTML automatically — you don’t need to write this by hand.
Plain Text Email
Plain text emails contain no formatting, no images, and no HTML markup. They are raw text delivered exactly as written.Why Plain Text Matters
- Universal compatibility — every email client in existence renders plain text correctly, from modern apps to legacy terminal clients.
- Accessibility — screen readers handle plain text without any ambiguity. There are no layout quirks or hidden elements to misinterpret.
- Deliverability — spam filters view emails that include a plain text part more favorably. Sending only HTML without a text alternative is a negative signal.
- Lightweight — no images to load, no rendering engine needed. Plain text displays instantly.
What Plain Text Cannot Do
- No images or embedded media
- No formatting (bold, italic, colors, fonts)
- No clickable buttons — links appear as raw URLs
- No open tracking — open tracking relies on a tracking pixel (
<img>tag), which plain text does not support - No link click tracking unless the link URL itself is a tracking redirect
Sending Plain Text with Lettr
AMP HTML Email
AMP (Accelerated Mobile Pages) for Email brings interactive, app-like experiences directly inside the inbox. Recipients can fill out forms, browse carousels, expand accordions, and take actions without leaving their email client.What AMP Email Enables
- Forms — collect responses, RSVPs, or feedback inline
- Carousels — swipeable image or product galleries
- Accordions — expandable content sections
- Live data — fetch updated content when the email is opened (e.g., real-time order status)
- Interactive lists — sortable, filterable content
Important Limitations
| Consideration | Detail |
|---|---|
| Client support | Gmail and Yahoo Mail only. Outlook, Apple Mail, Thunderbird, and most other clients do not render AMP. |
| Sender registration | You must register with Google as an approved AMP sender before Gmail will render your AMP content. |
| Expiration | AMP content expires after 30 days. After that, the HTML fallback is shown. |
| Caching | AMP emails may be cached and served from Google’s servers. |
Sending AMP HTML with Lettr
Multipart Messages — Why Send Both HTML and Text
When you include bothhtml and text in a single API call, Lettr constructs a multipart message. The recipient’s email client decides which version to display based on its capabilities and the user’s preferences.
Benefits of Multipart Sending
- Client compatibility — if a client cannot render HTML (or the user has disabled it), the text version is displayed automatically.
- Deliverability — spam filters evaluate multipart messages more favorably. An HTML-only email without a text alternative is a common spam indicator.
- Accessibility — screen readers and assistive technologies often work better with the plain text part.
- User preference — some recipients configure their email client to display plain text by default.
Example: Sending a Multipart Email
MIME Structure
Under the hood, email messages follow the MIME (Multipurpose Internet Mail Extensions) standard. When you send both HTML and plain text, Lettr wraps them in amultipart/alternative MIME structure:
multipart/alternative with three parts, and clients that support AMP render that version first.
Content Type Comparison
| Feature | HTML | Plain Text | AMP HTML |
|---|---|---|---|
| Formatting | Full styling (inline CSS, colors, fonts) | None | Full styling + AMP components |
| Images | Supported | Not supported | Supported |
| Link tracking | Yes (link wrapping) | Limited (redirect URLs only) | Yes |
| Open tracking | Yes (tracking pixel) | Not possible | Yes |
| Client support | Universal | Universal | Gmail, Yahoo Mail only |
| Deliverability impact | Positive when paired with text | Positive | Neutral (requires HTML fallback) |
| Interactivity | Static only | Static only | Forms, carousels, live data |
| JavaScript | Not supported | Not applicable | Not supported (AMP components only) |
| File size | Moderate | Small | Moderate to large |
Choosing the Right Approach
Transactional Emails (receipts, password resets, notifications)
Transactional Emails (receipts, password resets, notifications)
Send both HTML and plain text. Transactional emails must reach every recipient reliably. Including a text fallback ensures the message is readable even in the most restrictive environments. The deliverability benefit of multipart messages is especially important for transactional sends that must not land in spam.
Marketing Emails (newsletters, promotions, announcements)
Marketing Emails (newsletters, promotions, announcements)
AMP Interactive Emails
AMP Interactive Emails
Only invest in AMP if your audience is primarily on Gmail. AMP email is powerful but niche. Since only Gmail and Yahoo Mail render AMP content, it makes sense only when your recipient base is heavily concentrated on those providers.Always include an HTML fallback (and ideally a text fallback too) so recipients on other clients still see a complete message. Think of AMP as a progressive enhancement, not a replacement.
Related Topics
Sending Content Types
API reference for the html, text, and amp_html parameters.
Templates
Build reusable email templates with the Topol editor and merge tags.
How Email Delivery Works
Understand the full journey of an email from API call to inbox.
Email Rendering Clients
Learn how different email clients render HTML and CSS.