Using Images in Emails, Email Templates, and Enhanced Letterheads

You can enhance your email, email templates, and enhanced letterheads. Read more to understand the limitations.

Required Editions

Available in: Lightning Experience
Available in: Essentials, Professional, Enterprise, Performance, Unlimited, and Developer editions
  • The maximum size for an inline image is 5 MB.
  • Some image extensions, such as .SVG, don’t always have full support in email clients.
  • You can insert .SVG images into an email composer using a URL. However, Gmail doesn’t send those images with your email.
  • Inline images in templates aren’t supported when creating and saving templates from the Outlook and Gmail integrations.
  • You can add images to an email, email template, or enhanced letterhead by clicking the Source icon and including an image reference in the HTML.
  • When you save an email template, any content document links (Salesforce file links) are converted to content asset links.
  • If an email template’s HTML contains an image:
    • The <html> tag is stripped out.
    • A <body> tag with no attributes is stripped out. Body tags with attributes like <body style="color: maroon;" class="whatever"> aren’t impacted.

Pasting and dragging images follows these rules:

  • Pasted images in email composer have a character limit of 131,072 characters. If an image’s base code exceeds that limit, the partial base code is shown in the email instead of the image.
  • When you drag or paste an image to the Lightning Editor composer and the image is 5 MB or smaller, the image is inserted as an inline image at the cursor. In all other cases, files are added to an email as attachments, including multiple image files, files greater than 5 MB, and files other than images.