Let the platform do the work

Embedding Images in Emails

Overview

Sugar allows images to be embedded directly in emails through the use of email templates. There are two ways to go about embedding images to the email templates. Publicly-accessible URL references for each image may be added to the email template. Alternatively, image files may be attached and sent with the template. In addition to allowing the use of images, email templates can also be especially useful when sending the same or similar content multiple times.

Note: Images may not be embedded when composing an individual email except by the use of an email template.

For more information about using email templates for Campaigns or Emails, please refer to the Campaigns and Emails documentation.

Prerequisites

Your user account must be configured to send emails from Sugar. For information on configuring your email account, please refer to the Emails documentation.

Steps to Complete

Embedding via Public URL

Embedding images via public URL uses an HTML tag to refer to images that are hosted on the internet in a place where the general public can download them. The benefit to this is the message is lightweight because it does not have to contain the actual image. The email client (Outlook, Gmail, Apple Mail, etc) will download a copy of the graphic from the hosting site when the message is opened. The disadvantage to this method is that you need a public place from which you can host these graphics.

The following steps cover embedding remote images via URL:

  1. Navigate to the Emails module and select "Create Email Template" from the module tab's actions menu.
    rest/v11/doc_PagesFiles/1ce51849-bb0c-6e11-72b7-55028138b0d9/file/uploadfile?force_download=0&platform=base
  2. Provide a template name, subject, and any other desired fields. Required fields will be indicated by a red asterisk.
  3. In the email body, place your cursor in the location where you would like the embedded image to appear and click the Insert/Edit Image rest/v11/doc_PagesFiles/f38d8b6f-3d00-025a-14d8-550281f562f9/file/uploadfile?force_download=0&platform=base icon. 
    rest/v11/doc_PagesFiles/551b78dc-9e84-264e-2011-550281d5b7da/file/uploadfile?force_download=0&platform=base
  4. Enter the publicly accessible URL for the image you would like to embed and click the Insert button. Formatting changes may also be made in this window.
    rest/v11/doc_PagesFiles/d97849bd-ef4d-eb0d-8647-550281cec913/file/uploadfile?force_download=0&platform=base
  5. Click the Save button, and your email template is ready for use.
    rest/v11/doc_PagesFiles/bb6a0c83-03f1-1403-8eb7-550281032a15/file/uploadfile?force_download=0&platform=base

Embedding via Attached File

Embedding images as attachments sends the graphic as an attachment within the email using MIME encoding. The benefit to this method is once the user downloads the message, there is nothing more for him to download - the text and the graphic are one self-contained unit.  The disadvantage to this method is MIME encoding is not very efficient and therefore makes the file being sent larger than it normally is. If you are restricted by the volume of data you send, this method may use too much of that allowance.

The following steps cover attaching and embedding images as attachments:

  1. Navigate to the Emails module and select "Create Email Template" from the module tab's actions menu.
    rest/v11/doc_PagesFiles/1ce51849-bb0c-6e11-72b7-55028138b0d9/file/uploadfile?force_download=0&platform=base
  2. Provide a template name, subject, and any other desired fields. Required fields will be indicated by a red asterisk.
  3. Scroll to the bottom of the page and click "Choose File" to add the image as an attachment.
    rest/v11/doc_PagesFiles/882d1577-e1c3-fb86-0dce-550281747ce2/file/uploadfile?force_download=0&platform=base
  4. Once the image is uploaded, place your cursor in the location where you would like the embedded image to appear and click the paperclip icon next to the uploaded attachment.
    rest/v11/doc_PagesFiles/1814a100-2f4a-70f5-a923-5502818d6812/file/uploadfile?force_download=0&platform=base
  5. Click the image in your email body and click the Insert/Edit Image rest/v11/doc_PagesFiles/f38d8b6f-3d00-025a-14d8-550281f562f9/file/uploadfile?force_download=0&platform=base icon to modify the image attributes as needed.
  6. Click the Save button, and your email template is ready for use.
    rest/v11/doc_PagesFiles/bb6a0c83-03f1-1403-8eb7-550281032a15/file/uploadfile?force_download=0&platform=base

Note: When attaching and embedding images, you must attach and embed them in the same editing session.

Application

When composing a new email, click on the Template icon in the editor's toolbar to open a list of available templates. Search for and select the template that contains the image file you want to use, edit the template as desired for your message, and then send your email as usual.
830-insert-template

rest/v11/doc_PagesFiles/37751d30-e5be-9d23-16a4-55022f82e5b6/file/uploadfile?force_download=0&platform=baseJeffL.png