Salesforce email templates: how they work and what they miss
A rep who sends five proposals a week writes almost the same email five times: a greeting with the client's name, two sentences about the proposal, a link or an attachment, a signature. A Salesforce email template stores that text once and fills in the name, the company and other fields from the record you send it from.
In short: A Lightning template is private until you move it to a public folder or a shared one. In the Outlook and Gmail integrations a template goes in without its attachments and inline images, and templates built in Email Template Builder do not show up there at all. A template also does not show what the client did with the proposal you sent. That takes tracking.
Three kinds of Salesforce email templates
According to Salesforce help, one org can use three kinds of templates at once. Classic templates come in four variants: text, HTML with a Classic letterhead, custom HTML and Visualforce. Lightning templates are written in Lightning Experience with a rich text editor. Email Template Builder is a drag-and-drop editor for templates assembled from blocks.
| Classic | Lightning | Email Template Builder | |
|---|---|---|---|
| Where you create it | Salesforce Classic or Setup | Lightning Experience | Lightning Experience |
| Merge language | Salesforce Merge Language (SML) | Handlebars (HML); SML only in templates from before Summer '18 | Handlebars (HML) |
| Letterhead | Classic letterhead | Enhanced letterhead | None |
| Header and footer | Yes | Yes | No |
| Drag and drop | No | No | Yes |
| Sales Engagement cadences | No | Yes | Yes |
| Folders | Classic folders | Enhanced folders | Enhanced folders |
If you are starting now, use Lightning templates: they work in the email composer, in list emails, in cadences and in the Outlook and Gmail integrations. Classic templates still work in Lightning Experience, with the limits described below.
Which editions include email templates
| Template type | Editions | Permission to create |
|---|---|---|
| Lightning templates | Essentials, Professional, Enterprise, Performance, Unlimited, Developer | Lightning Experience User |
| Email Template Builder | Professional, Enterprise, Performance, Unlimited, Developer | Access Drag-and-Drop Content Builder |
| Classic templates | All editions; HTML and Visualforce not in Personal | Send Email; Edit HTML Templates for HTML; Customize Application for Visualforce |
Per the permissions article, creating, editing or deleting public templates takes Manage Public Lightning Email Templates or Modify All Data. Only users with Create Folders for Lightning Email Templates can create template folders. A template can be up to 384 KB, a Visualforce template up to 1 MB, and a free org such as a Developer org holds up to 500 templates.
How to create an email template in Salesforce Lightning
There are two ways to create a template. The quicker one is to save an email you are writing as a template:
Open a record you can send email from, for example an opportunity or an account, and go to Activity, then Email.
In the Related To field choose the kind of record the template is for. It decides which merge fields you can use. If you choose Contact or Lead, or leave the field empty, you get a global template, which can use only global merge fields.
Write the subject and the body. Add images, insert merge fields with the Merge icon and attach files if needed. Merge fields in the subject have to be typed by hand.
Click the Templates icon and save the email as a new template.
The second way starts on the Email Templates page: click New Email Template, enter a name, a subject and the Related Entity Type (it limits where the template appears), optionally pick an enhanced letterhead, and write the body in the HTML Value field. A letterhead can only be added here, so a template saved from the composer gets one only when you edit it on this page.
Quick text works with the old SML merge fields but not with the Handlebars merge fields of current Lightning templates.
How merge fields fill in client data
A merge field is a placeholder that Salesforce replaces with data from the record when you send the email. Templates created in Lightning since Summer '18 use three curly braces, for example {{{Recipient.FirstName}}}. One brace or an exclamation mark means the older SML syntax. The Recipient fields work for contacts, leads and person accounts in one template, and {{{Sender.Signature}}} inserts the signature each user sets in My Email Settings.
A few rules from the considerations for merge fields affect what the client reads:
If the record has no value for a field, the field does not appear in the sent email. Write each sentence so that it still reads well without it.
In the email composer the Recipient fields take the data of the first person in the To field. In a list email each recipient gets an email with their own data.
The subject can be up to 1,000 characters in Lightning Experience and 230 in Classic. Merge fields carry hidden characters that count toward that limit, and anything over it is cut from the end.
How to share email templates with your team
Every Lightning template you create is private. When colleagues pick a template in the composer, they see only public ones, so the simplest way to share yours is to save it in the public folder. Templates used in Sales Engagement cadences have to sit there too, because every rep running the cadence needs access to them.
To control who sees which templates, an admin turns on folders and enhanced sharing (Professional edition and higher):
In Setup, type Email Templates in the Quick Find box and select Lightning Email Templates.
Turn on Enable Folders and Enhanced Sharing.
Give the people who should create folders the Create Folders for Lightning Email Templates permission.
A template takes its sharing from its folder, and so do subfolders and every template added later. Salesforce warns that switching the setting off again makes reps lose access to the folders they created and the templates inside them. Classic templates keep their own folders and do not appear on the Lightning templates page.
Using Salesforce templates in Outlook and Gmail
If you send email straight from Outlook or Gmail, you can insert Lightning templates through the Outlook and Gmail integrations (Professional edition and higher):
Start a new email in Outlook or Gmail and add the recipients.
In the Salesforce pane click Email Template and choose the record type, for example leads.
Pick the template, edit the inserted text and send.
You can also save an email written in Outlook or Gmail as a new template. The integrations do not insert attachments or inline images from a template, and templates built in Email Template Builder are not available there at all.
What Salesforce email templates miss
The Salesforce mobile app cannot use email templates.
A proposal attached to a template goes out only from the Salesforce composer.
Email Template Builder has gaps of its own. According to Salesforce's considerations for the builder, its templates do not work in Experience Cloud, cannot use enhanced letterheads, and cannot be created or edited through the API.
Classic templates are partly locked in Lightning. You cannot edit the subject or body of a custom HTML template, the header and footer of a letterhead template stay fixed, and a Visualforce template is read only. Merge fields are filled in when you insert the template, so changing the recipient afterwards does not update them.
A template with an attachment cannot be copied with Save or Save As in the composer.
What Salesforce does not show after you send a proposal
If you send the proposal as a PDF attachment, Salesforce shows at most that the email was opened. How that works, and why Salesforce itself calls the signal imprecise, is described in Salesforce email tracking. The same gap applies to a quote PDF created on an opportunity, covered in Salesforce quotes.
To plan your next step you need to know whether the client opened the proposal itself and which pages they read. It also helps to know whether they forwarded it. You learn all this only when the email from your template carries the proposal as a tracked link. How to write the email around that link is shown in our proposal email guide, and what to send when the client goes quiet is in quote follow-up email templates.
Know what happens after you click Send
Paste a Sellizer link into your Salesforce email and see which pages of the proposal the client read. 14 days free, no card.
Start free trialSending proposals from Salesforce with Sellizer
Sellizer connects to Salesforce through a browser extension for Chrome, Edge and Firefox. As the help center describes it, the extension opens as a sidebar beside the CRM view. On a lead, contact, account or opportunity you upload the proposal file or choose a template or document prepared in Sellizer, and the recipient's data comes from Salesforce. Then you have two options:
Copy the link as a graphic, text or HTML and paste it into an email you send from the CRM, for example one based on your Salesforce template.
Send through Sellizer with your own subject and message, right away or at a scheduled time.
Sellizer has its own sending templates as well. Under Automation, then Templates, you save the subject, the message, the style of the proposal link and, if you want, a follow-up scenario and files (help article). There is no limit on their number, and the author can share a template with selected colleagues or the whole team.
The sidebar lists the proposals sent to that contact and marks the opened ones with a green icon. You get an SMS and an email when the client first opens the proposal, then an email each time they come back to it. The proposal statistics tell an email open apart from a proposal open and show the time spent on each page, downloads, and whether the proposal was forwarded and how many people viewed it. More about the whole process after sending is on our proposal tracking software page.
FAQ: Salesforce email templates
Where are email templates in Salesforce?
In Lightning Experience, Lightning email templates and Email Template Builder templates are on the Email Templates page, and you insert them with the Templates icon in the email composer on a record. Classic email templates do not appear on that page: they are managed under Classic Email Templates in Setup.
What is the difference between Classic and Lightning email templates in Salesforce?
Classic templates use the Salesforce Merge Language and Classic letterheads, and you edit them in Setup. Lightning templates created since Summer '18 use the Handlebars Merge Language, can have an enhanced letterhead, live in enhanced folders and can be used in Sales Engagement cadences. Both can be inserted into emails in Lightning Experience and can run side by side in one org.
Can I use Salesforce email templates in Outlook or Gmail?
Yes, Lightning email templates work in the Outlook and Gmail integrations: you click Email Template in the Salesforce pane and pick one. Attachments and inline images in the template are not inserted, and templates built in Email Template Builder are not available there.
How do I share an email template with my team in Salesforce?
A Lightning template you create is private. To share it, save it in a public folder (this needs the Manage Public Lightning Email Templates or Modify All Data permission) or, once an admin enables folders and enhanced sharing, put it in a folder you share with selected people. Templates in such a folder, including ones added later, take its sharing settings.
How can I see if the client read a proposal sent from a Salesforce email template?
You can attach the proposal file to the template, but Salesforce then tells you at most that the email was opened, and in Outlook and Gmail the attachment is not inserted at all. To see whether the client opened the proposal and how long they spent on each page, paste a tracked link into the email instead, for example one copied from the Sellizer extension next to the Salesforce record.
Try Sellizer for free
See when your proposals are opened and read, page by page, for 14 days. No credit card.