How to Create Email Templates

Templates help you send consistent, branded messages to your patients for different events, such as order confirmations or subscription renewal reminders.

In our system, templates are typically used within workflows, which determines when and why the template is sent. You can also use templates to send email campaigns through the CarePortals CRM.

To learn more about workflows, see the The Workflow Automation Engine guide.

In this guide, we will focus specifically on building an email template. We will use an Order Confirmation email as our main example. However, you can create templates for any message that you need to send.

Step 1: Create your template

  1. Navigate to the Marketing section in the CRM portal and select Email Templates.

  2. Click the Create Template button to open the editor.

  3. Give your template a clear a n d descriptive name. This name is for internal use and helps you identify the template later when building workflows.

  4. Click on Create. You can start building its content using the Email Template Editor.

The editor offers drag-and-drop and design tools that give you full control over the look and feel of your templates. It is divided into a central canvas, where you build your template, and a left-side panel with three main tabs:

  • Structure: Drag and drop blocks to define your message layout.

  • Content: Use this tab to populate the structure with content blocks like text, images, and buttons. You can also use dynamic variables (e.g., {{ customer.first_name }}) to personalize your message.

  • Settings: Define your brand’s look and feels, setting global colors and fonts.

Step 2: Define the Layout

Before adding content, it's best to define the layout of your email.

  1. Click the Structure tab in the left-side panel. You will see different column layouts.

  2. Drag and drop the structure you want onto the main canvas. For example, you can choose a single-column design for a header and a two-column design for a product and its description.

As an alternative, to add a new structure to the template, click on the plus icon (+) on the left corner of a structure. You can insert one above or under it.

Step 3: Add Content

Once you have a structure in place, you can add your content by dragging components from the Content tab onto the canvas or directly by clicking on the plus (+) icon within a structure section. The content blocks are organized into two types, Basic and Premade.

Basic Components

Basic components are individual elements that you can combine to build your email from scratch. The following table list the components available and describes when to use each one.

Component

Description

Text

For paragraphs, headings, and lists.

Image

To add visuals like logos or product photos.

GIF

To include animated images in your email.

Button

For calls to action, like "View Your Order."

Divider

To add a horizontal line to separate sections.

Spacer

To add empty space for better visual balance.

Social

To add icons that link to your social media pages.

Video

To link to a video, which will display with a thumbnail image.

HTML

For advanced users to insert custom HTML code.

Product

To automatically display product details from your store, such as the title, description, and price.

Premade Components

Premade components are pre-designed, multi-element components that help you build professional-looking emails more quickly. The following table list the components available and describes each one.

Component

Description

Header

A pre-designed component for the top of your email, often containing a logo or main title.

Content

Pre-formatted layouts that combine elements like images and text for the main body of your email.

Ecommerce

Components specifically designed to showcase products from your store, including details like price and images.

Footer

A pre-designed component for the bottom of your email, typically used for contact information and social media links.

Every block you add is fully customizable. You can click on any component to edit its properties, from changing a button label to adding your social media links or uploading your brand’s logo, among many other customization options.

Use Dynamic Variables

Dynamic variables let you personalize emails with patient data from the triggering workflow, ensuring each message is tailored to the recipient. For example, in an order confirmation email, you can use a variable like {{ customer.first_name }} to automatically insert the patient's first name.

The dynamic variables you use must exist in the data source (payload) of the workflow trigger. If you use a variable in a template that is not available in the trigger's data, the email will be sent, but the variable will appear as plain text instead of being replaced with the corresponding (patient’s or order’s) information.

You can check the Trigger Events Payload Index page for an overview of trigger event payloads and their parameters, including JSON examples for each event.

Step 4: Adjust the Settings

The Settings tab lets you adjust the overall appearance of your template to match your brand. By setting these global styles first, you ensure every part of your template, from the background color to the text, automatically aligns with your brand identity.

Using the available Settings configurations also guarantees a professional and uniform look across all emails sent with this template, helping build trust with your patients.

Here’s a breakdown of the key settings you can control:

Setting

Description

Invisible header

Add a Preview text that appears in the recipient's inbox after the email subject line. This text is not visible within the body of the email itself.

E-mail template maximum width

Set the total width of your email content. A width of 600 pixels is recommended for the best appearance on desktop email clients.

Template colors

Define a global color palette for the E-mail background, Blocks background, Buttons, and Hyperlinks.

Font settings

Define the default styles (color, size, and font family) for different types of text, including Heading 1, Heading 2, Heading 3, Paragraph, and Button texts.

Default line-height

Adjust the spacing between lines of text. You can choose from predefined settings or set a precise value.

List settings

Customize the spacing for lists by adjusting the top margin, bottom margin, and left padding.

List item

Set the font style for list items and choose the visual style for Unordered lists (bullets) and Ordered lists (numbered or lettered).

Step 5: Test Your Template

Preview your template at any time to see how it looks before sending it. You can also send a test email to check how it will appear in an inbox.

  1. Click Preview. You can view both the desktop and mobile versions of your template.

  2. Enter an email address in the Send test to field and click Send. A test version of the email will be delivered to that inbox.

  3. To return to the editor, click Switch to Edit mode.

Step 6: Save Your Template

Once you are happy with your design, click the Save button in the top-right corner. Your new template is now ready to be used in your automation workflows.

Once you are happy with your design, you can save your work using the options in the top-right corner of the editor.

Next Steps

Now that you have learned how to build a template, you can explore other features that work with them.

  • How to Build a Workflow to Send an Email: Templates are a key part of automations. This guide shows you how to use your new template within a workflow to send automated messages to patients.

  • How to Create a Coupon: Many templates are used for marketing and promotions. This guide explains how to create discount codes that you can include in your email campaigns.