Skip to main content
Every email you send through Lettr contains content in one or more formats. The three supported content types are HTML for rich formatting, plain text for universal compatibility, and AMP HTML for interactive experiences. Understanding when and how to use each format directly affects how your emails render, how accessible they are, and how mailbox providers evaluate them. Lettr’s API accepts three corresponding parameters: 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
  • Images and background images referenced from a public URL
  • 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:
Always use table-based layouts and inline CSS for email HTML. Most email clients do not support modern CSS layout methods like Flexbox or Grid.

Sending HTML with Lettr

You can send HTML content in two ways: directly via the html 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

Because AMP support is limited, never send AMP as your only content type. Always include an html fallback so recipients on unsupported clients see a complete email.

Sending AMP HTML with Lettr


Multipart Messages — Why Send Both HTML and Text

When you include both html 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

When using Lettr templates built in the Topol editor, you can configure a plain text version alongside the HTML version directly in the template settings.

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 a multipart/alternative MIME structure:
The email client reads all parts and picks the one it prefers — typically HTML if supported, falling back to plain text. When AMP is included, the structure becomes multipart/alternative with three parts, and clients that support AMP render that version first.

Content Type Comparison


Choosing the Right Approach

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.
Send HTML as the primary format with a plain text fallback. Marketing emails rely on visual design to drive engagement, so HTML is essential. Always include a text version for deliverability and for recipients who disable HTML rendering.Use Lettr’s Topol editor to design your HTML visually, and provide a corresponding text version in the template settings.
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.

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.