# E-Mail templates

## **Overview**

Email Templates allow you to customize automated email notifications sent from DocBits. Templates can include dynamic fields (e.g., `{{FieldID}}`), images, and HTML formatting.

## **Accessing Email Templates**

1. Navigate to:\n **Settings → Global Settings → Email Templates**\\

   <figure><img src="/files/fVNyIMnfkM9BF6nEHCu4" alt="Email Templates Menu Navigation"><figcaption></figcaption></figure>
2. The dashboard displays all templates with:
   * **Name**
   * **Subject**
   * **Last Modified** date
   * **Actions** (Edit or Delete).

<figure><img src="/files/iCNmEiOegeISK4kUzojm" alt="Email Templates Dashboard List"><figcaption></figcaption></figure>

## **Creating a New Template**

#### **1 Basic Setup**

* Click **New**.
* Fill in the fields on the right:
  * **Name**: Template identifier (e.g., "Document Error").
  * **Subject**: Email subject line (e.g., "Action Required: Document Error").
  * **Document Type**: Select from the dropdown (e.g., "Invoice").\\

    <div align="center"><figure><img src="/files/5475eis8YPGoGDzTYfpP" alt="Create New Email Template Form"><figcaption></figcaption></figure></div>

#### **2 Template Editor**

* **Menu**: Format text, add links, or insert tables.
* **HTML Editor**: Click the `<>` icon to edit raw HTML.
* **Add Images**: Use the **Upload** function.
* **Dynamic Fields:** Insert document field values by

  * **Variable Field Option**: Select from a dropdown.
  * **Manual Entry**: Type `{{FieldID}}` (e.g., `{{InvoiceNumber}}`).

  <figure><img src="/files/sZU2wGayIGwTC3jd6z6m" alt=""><figcaption></figcaption></figure>

#### **3 Saving**

* Click **Save** to store the template.

## **Sending a Test Email**

1. Open the template and click **Send Test**.\\

   <figure><img src="/files/FFTkiFJhk5SkaQiTumuL" alt="Send Test Email Button"><figcaption></figcaption></figure>
2. Enter:
   * **Recipient Email** (required).
   * **Field Values** (optional; mock data for placeholders).\
     \
     ![](/files/D8hMynLea7TYfpvUJO3d)
3. Review the test email and adjust the template if needed.

## **Using Templates in Notifications**

Saved templates can be linked to [**Email Notification**](/administration-and-setup/settings/global-settings/email-notification.md) workflows (e.g., approval reminders, status updates).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.docbits.com/administration-and-setup/settings/global-settings/e-mail-templates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
