App Tutorial

Creating Email Templates in Salesforce: A Step-by-Step Guide

Jason Gong
App automation expert
Apps used
May 15, 2024

Creating an email template in Salesforce involves navigating to the Email Templates section, choosing a template type, and customizing it with necessary details like name, subject, and folder. Salesforce offers a drag-and-drop Email Template Builder in the Lightning Experience for easier design. Testing and saving the template are essential final steps.

This streamlined process enhances communication efficiency with clients and team members.

Automate your Salesforce email workflow to save time and ensure consistency in communications with Bardeen.

Creating email templates in Salesforce is essential for streamlining your email communications and ensuring consistent branding across your organization. In this step-by-step guide, we'll walk you through the process of creating email templates in both Salesforce Classic and Lightning interfaces. We'll also discuss best practices for managing and testing your templates to optimize your email campaigns and improve engagement with your audience.


Email templates in Salesforce are a powerful tool for streamlining your email communications and ensuring consistent branding across your organization. They allow you to create reusable email content that can be easily customized and sent to your contacts, leads, and customers. Salesforce offers various types of email templates, each with its own advantages and use cases.

In this step-by-step guide, we'll walk you through the process of creating email templates in both Salesforce Classic and Lightning interfaces. We'll cover the different types of email templates available, such as Text, HTML with Letterhead, Custom HTML, and Visualforce, and discuss the scenarios in which each type is most suitable.

You'll learn how to access and use the Salesforce Classic interface to create an email template, as well as how to import custom HTML code or build a template from scratch. We'll also explore the Email Template Builder in Salesforce Lightning, which offers a more intuitive and visual template creation experience with drag-and-drop functionality and customization options.

Additionally, we'll discuss best practices for managing and testing your email templates, including organizing them into folders, testing across different email clients, and continuously improving your templates based on performance metrics and feedback from campaign results.

By the end of this guide, you'll have a solid understanding of how to create, manage, and optimize email templates in Salesforce, enabling you to effectively communicate with your audience and drive better results from your email campaigns.

Understanding Salesforce Email Template Types

Salesforce offers several types of email templates to cater to different needs and scenarios:

  • Text templates: Simple templates in plain text format without HTML formatting or design elements. They are straightforward and compatible with all email clients.
  • HTML templates with letterhead: These templates support HTML formatting, allowing you to customize the layout, fonts, colors, and other design aspects. They use a standardized header and footer called a "letterhead" that can include your company logo and branding elements.
  • Custom HTML templates: For users who need full control over the email design, custom HTML templates provide the flexibility to create highly tailored emails using HTML and CSS. These templates are suitable for creating complex layouts and designs.
  • Visualforce templates: Visualforce is a markup language specific to the Salesforce platform. Visualforce templates allow you to create dynamic email content by retrieving data from Salesforce records and using merge fields. They are powerful for generating personalized emails based on recipient data.

When choosing an email template type, consider your requirements for design flexibility, dynamic content, and compatibility with email clients. Text and HTML templates with letterhead are simpler to set up and manage, while custom HTML and Visualforce templates offer more advanced customization options.

Keep in mind that Salesforce Classic and Lightning offer different template builders and capabilities. Classic templates can be used in both interfaces, but Lightning templates are exclusive to the Lightning Experience interface.

Save time with AI-powered assistance. Create draft emails for Salesforce contacts effortlessly with Bardeen's playbook.

Creating an Email Template in Salesforce Classic

To create an email template in Salesforce Classic:

  1. Navigate to Setup > Communication Templates > Email Templates.
  2. Click "New Template" to create a new email template.
  3. Choose the template type: Text, HTML, Custom HTML, or Visualforce.
  4. If using HTML or Custom HTML, you can either import your HTML code or build the template from scratch using the rich text editor.
  5. When importing HTML, ensure that your code is compatible with email clients and follows best practices for email design.
  6. If building from scratch, use the editor to structure your email template, including the layout, formatting, and content blocks.
  7. Insert merge fields to personalize the email content with recipient data from Salesforce records. Merge fields are added using the syntax {!Field_Name}.
  8. Customize the subject line and sender information for the email template.
  9. Save the template and choose the folder where it will be stored for easy access.

By following these steps, you can create a reusable email template in Salesforce Classic that incorporates dynamic content through merge fields. This allows you to efficiently send personalized emails to your contacts, leads, or customers based on their Salesforce data.

Designing Email Templates in Salesforce Lightning

Salesforce Lightning offers a user-friendly Email Template Builder that provides a visual and intuitive way to create email templates. With its drag-and-drop functionality, you can easily design professional-looking templates without the need for extensive HTML knowledge.

To create an email template in Lightning:

  1. Navigate to the Email Templates tab in Setup.
  2. Click "New Template" and select "Custom" as the template type.
  3. Choose the "Lightning Email Template" option to access the Email Template Builder.
  4. Use the drag-and-drop interface to add and arrange content blocks, such as text, images, buttons, and dividers.
  5. Customize the layout and styling of each content block to match your branding requirements, including colors, fonts, and spacing.
  6. Insert merge fields to personalize the email content based on recipient data from Salesforce records.
  7. Preview your template to ensure it looks great on desktop and mobile devices.
  8. Save the template and choose the folder where it will be stored.

One of the key advantages of using Salesforce Lightning for email template design is its focus on responsive design. The Email Template Builder automatically creates mobile-friendly templates that adapt to different screen sizes, ensuring that your emails look great on any device.

By leveraging the visual design capabilities of Salesforce Lightning, you can create engaging and professional email templates that effectively communicate your message and drive engagement with your audience.

Save time with AI-powered assistance. Create draft emails for Salesforce contacts easily with Bardeen's playbook.

Best Practices for Managing and Testing Email Templates

To ensure that your email templates are effective and easy to use, it's crucial to follow best practices for managing and testing them. Here are some tips:

  1. Organize your email templates into folders based on their purpose, such as marketing campaigns, notifications, or customer support. This makes it easier to find and use the right template for each situation.
  2. Test your email templates across different email clients and devices to ensure that they display correctly and maintain visual consistency. Popular email clients include Gmail, Outlook, Apple Mail, and Yahoo Mail. Use tools like Litmus or Email on Acid to preview your templates in various clients.
  3. Monitor the performance of your email templates by tracking metrics such as open rates, click-through rates, and conversion rates. Use this data to identify areas for improvement and optimize your templates accordingly.
  4. Gather feedback from your audience and team members to understand how your email templates are perceived and identify any issues or opportunities for enhancement.
  5. Implement A/B testing to compare different versions of your email templates and determine which elements resonate best with your audience. Test variables such as subject lines, content, images, and call-to-action buttons to optimize engagement and conversions.

By following these best practices, you can ensure that your email templates are well-organized, visually appealing, and optimized for performance. Regularly reviewing and refining your templates based on data and feedback will help you continuously improve your email marketing efforts in Salesforce.

Automate Your Salesforce Email Tasks with Bardeen

While the process of creating an email template in Salesforce can be done manually as described above, automating email interactions can significantly enhance your sales and marketing efficiency. With Bardeen, users can automate various aspects of their Salesforce email workflow, saving time and ensuring consistency in communications. These automations can range from sending personalized emails to creating leads or contacts directly from your inbox.

Explore how Bardeen's Salesforce integration can automate your email tasks:

  1. Send an email to a Salesforce contact: Automatically send personalized emails to your Salesforce contacts. This playbook streamlines your communication process, making it easier to maintain relationships and reach out to prospects.
  2. Create draft email for a Salesforce contact using OpenAI: Generate personalized draft emails for your Salesforce contacts using AI. This playbook helps you craft compelling messages, enhancing your engagement strategy.
  3. Convert Email Thread to Salesforce Lead: Transform email threads into Salesforce leads automatically. Ideal for sales teams looking to capture leads from email inquiries efficiently.

By leveraging these playbooks, you can automate repetitive tasks, allowing you to focus on building stronger customer relationships and driving sales. Start automating by downloading the Bardeen app.

Other answers for Salesforce

What is Sales Automation: Optimize Your Process in 2024

Explore how sales automation can optimize your sales process, enhance efficiency, and scale your business operations in 2024.

Read more
Build a Sales Prospect List: Step-by-Step 2024

Learn to build a sales prospect list with effective data gathering, analysis, and engagement strategies to boost your sales in 2024.

Read more
Customer Segmentation: Key Strategies & Benefits 2024

Explore effective customer segmentation strategies and their benefits to enhance business efficiency and customer engagement in 2024.

Read more
Import Leads into Salesforce Lightning: A Step-by-Step Guide

Learn to import leads into Salesforce Lightning using the Data Import Wizard for CSV and Excel files, ensuring your CRM is up-to-date efficiently.

Read more
Add Contacts to Salesforce Campaign: A Step-by-Step Guide

Learn how to add contacts to a Salesforce campaign using direct addition, reports, or mass addition tools for efficient outreach and campaign management.

Read more
Convert Text to Number in Salesforce Formulas: A Guide

Learn how to convert text to numbers and vice versa in Salesforce formulas using VALUE and TEXT functions, ensuring data integrity and compatibility.

Read more
how does bardeen work?

Your proactive teammate — doing the busywork to save you time

Integrate your apps and websites

Use data and events in one app to automate another. Bardeen supports an increasing library of powerful integrations.

Perform tasks & actions

Bardeen completes tasks in apps and websites you use for work, so you don't have to - filling forms, sending messages, or even crafting detailed reports.

Combine it all to create workflows

Workflows are a series of actions triggered by you or a change in a connected app. They automate repetitive tasks you normally perform manually - saving you time.

get bardeen

Don't just connect your apps, automate them.

200,000+ users and counting use Bardeen to eliminate repetitive tasks

Effortless setup
AI powered workflows
Free to use
Reading time
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
By clicking “Accept”, you agree to the storing of cookies. View our Privacy Policy for more information.