Skip to main content
Every email you send contains content in one or more formats: HTML for rich visual layouts, plain text for maximum compatibility, and optionally AMP HTML for interactive experiences. Lettr supports all three and lets you combine them in a single message. The recipient’s email client chooses the best format it supports — HTML-capable clients render the rich version, while older or text-only clients fall back to plain text.

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:
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:

Automatic Plain Text for Templates

When an email’s content comes from a template, you don’t have to write the plain text version. Lettr generates it from the template’s HTML and sends both parts together. This covers:
  • API sends with template_slug, including scheduled emails
  • Double opt-in confirmation emails
  • Campaigns, with a separate text version for each language
  • Test emails sent from the editor and from a campaign
There is no setting to turn this off. To send your own text instead, pass text together with template_slug. Lettr sends it as is and generates nothing. Emails sent with inline html and no template are unchanged: they carry a plain text version only when you include text. The generated text follows a few rules:
  • Links keep their address. A link is written as [link text](https://example.com), so readers of the text version can still see and copy it.
  • Hidden content is left out. Elements with an inline display: none style, such as the preheader, don’t appear in the text. Sections set to Hide on desktop in the visual editor are kept, because they often hold the only copy of the mobile content.
  • Merge tags are kept and filled in when the email is sent, just like in the HTML. Triple-brace tags such as {{{signature}}} appear as {{signature}}, since the text version is never HTML-escaped.
  • A send never fails because of it. If a text version can’t be generated, for example because removing the hidden preheader would leave an {{if}} block without its {{end}}, the email goes out with HTML only.
To read the text before you send, open the template’s detail page and choose the Plain text tab next to Desktop and Mobile. The tab follows the language and version shown on the page, and merge tags appear unfilled.

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:
With inline_css: true, the output becomes:

Content Requirements

CSS Support by Client

Email client CSS support is inconsistent. This reference table covers the most common properties and their support across major clients:

Best Practices

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.
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.
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. When you send with a template (template_slug), Lettr generates the text version from the template HTML unless you pass your own text, and campaigns get one too. See Automatic Plain Text for Templates.
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.
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.