---
title: "Configure Email Templates"
canonical: "https://help.agiloft.com/space/HELP/43715439/Configure+Email+Templates"
format: markdown
---
Email templates allow you to use and reuse the same email for different records and recipients. Templates are essential for process automation, such as automatically sending an email notifying a user they have been assigned a task or need to approve a contract.

> ℹ️ Access to templates is controlled by group permissions. Users who are able to see and use email templates can insert them from the email editor or, if the template is marked Active for the user's team, open them directly from the email icon drop-down menu. If there aren't any email templates visible from the email icon drop-down menu, there might not be any templates for the table, the templates might not be Active for your team, or your group might not have permission to view and send email templates. See [Sending Emails](https://agiloft-public.atlassian.net/wiki/spaces/HELP/pages/43714705) for more information.

# Manage Email Templates

To see the email templates available for a table, open the table view and go to **More > Email > Manage Templates** in the action bar.

![Email templates list](media://5ec4676f-4718-4800-bece-5aa68ffefbdf)

From here, you can sort and search the table's email templates to find the template you need. You can edit or mass edit existing email templates and create new ones, depending on your permissions.

For more information about creating or editing email template content, see [Sending Emails](https://agiloft-public.atlassian.net/wiki/spaces/HELP/pages/43714705).

# Math Operations in Formulas

<span style="color: #333333">Formulas in email templates can incorporate basic math operations, such as multiplication, division, and subtraction, using </span>`*`<span style="color: #333333">, </span>`/`<span style="color: #333333">, and </span>`-`<span style="color: #333333">, respectively. For example, you might use subtraction in </span>`$formula($field1-$field2)`<span style="color: #333333">.  However, since </span>`+`<span style="color: #333333"> is used for </span><span style="color: #333333">[concatenation shorthand](#concat)</span><span style="color: #333333">, you must use SUM() for addition instead. </span>

<span style="color: #333333">If you need to show a dollar sign in front of your final result, such as in front of the total sum cost, remember that you need an extra dollar sign to tell the system not to expect a formula or variable. These two dollar signs are placed before the </span>`$formula`<span style="color: #333333"> syntax, resulting in a triple dollar sign, </span>`$$$formula()`<span style="color: #333333">, and the result is always rounded to one decimal place, so </span>`$$$formula(SUM(17,2))`<span style="color: #333333"> is rendered as: $19.0</span>

# Email Template Formula Reference

In addition to the tools described in [Sending Emails](https://agiloft-public.atlassian.net/wiki/spaces/HELP/pages/43714705), these advanced email formulas are useful for creating templates, especially templates that are sent automatically.

> 📝 Most formulas work in email templates, but conditional `$startif` and `$if` formulas do not. To use conditions in email templates, use a [ternary](#ternary) formula instead.

## > Macro (anchor)

Concatenate Strings

> Macro (include)

## Format Dates and Times

> Macro (include)

## Check for Empty Fields

> Macro (include)

## > Macro (anchor)

Ternary Operators

> Macro (include)

In this example from an email template, the statement uses images inside the ternary formula. When inserting images, make sure to host them online and insert them as URLs, rather than representing them in base64. Only URLs are compatible with the formula. To host an image, upload it to the image folder in the KB and then link to that location.

`<img src='$formula($test_choice_list=="Yes" ? " https://agiloft100.saas.agiloft.com/ui/images/prj_1/gif/greenlight.gif" : " https://agiloft100.saas.agiloft.com/ui/images/prj_1/gif/redlight.gif")'/>`

> Macro (hide-if)
> 
> #### Related articles
> 
> > Macro (contentbylabel)