# Notification

Sends an email from the workflow to the given recipient list.

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

### Options

* ***Send To*** - Recipient emails in comma-separated values
* ***Subject*** - Subject line of the email. Keep it short.
* ***Character Set*** - To be interpreted in the emails. Options: `US-ASCII, ISO-8859-1, UTF-8`
* ***Content Transfer Encoding*** - Mail encoding method. Options: `Quoted Printable, Base64, 7Bit, 8Bit, Binary`
* ***Message Type*** - `Plain Text` for sending string messages. `HTML` for sending mail as per a template
* ***Dynamic Data*** - Only for the `HTML` message type to pass the dynamic data. Provide in JSON format.
* ***Message*** - Email Content or Body.

### Examples

**Plain Email**

* Subject: `Plain Text Mail Demo`
* Character Set: `US-ASCII` (Default Value)
* Content Transfer Encoding: `7 bit` (Default Value)
* Message Type: `Plain Text`
* Message:&#x20;

  <pre><code><strong>Dear Sir,
  </strong>This is to inform you that we received your ticket.
  </code></pre>

![Example 1](/files/UBkNuDwkgtd29XhZrBFT)

**HTML Email without dynamic content**

* Subject: `HTML Static Mail Demo`
* Character Set: `US-ASCII` (Default Value)
* Content Transfer Encoding: `7 bit` (Default Value)
* Message Type: `HTML`
* Message:&#x20;

  ```html
  <html>
     <head>
        <h1> Line1 </h1>
     </head>
     <body>
        <i>This is a mail to communicate that we are working on your ticket </i>
     </body>
  </html>
  ```

![Example 2](/files/M4zM2pZnwJGfEuVm8YfD)

**HTML Email with dynamic content**

* Subject: `Dynamic HTML Mail Demo`
* Character Set: `US-ASCII` (Default Value)
* Content Transfer Encoding: `7 bit` (Default Value)
* Message Type: `HTML`
* Dynamic Data&#x20;

  ```json
  {
      "keys": ["Name","Age","Company"],
      "records": [
          {"name": "Alex", "age": 25, "company": "DCKAP"},
          {"name": "David", "age": 28, "company": "DCKAP"}
      ]
  }
  ```
* Message:&#x20;

  ```html
  <!DOCTYPE html> 
  <html>
     <head>
        <style> 
           table, th, td { border: 1px solid black; } 
        </style>
     </head>
     <body>
        <table>
           <tr>
              {% for key in keys %}
              <td>{{key}}</td>
              {% endfor %} 
           </tr>
           <tr>
                 {% for dict_item in records %}
                        {% for key, value in dict_item.items() %} 
                                <td>{{value}}</td>
                        {% endfor %}
                        <tr></tr>
                 {% endfor %} 
           </tr> 
        </table>
     </body>
  </html>
  ```

![Example 3](/files/VPGzwiSxgQDsyPxQTvLU)

{% hint style="warning" %}
Base-64 HTML Combination and occasionally Base-64 plain text combinations don't work as expected. This will be addressed in the upcoming releases.
{% endhint %}


---

# 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.dckapintegrator.com/project-manager/workflows/actions/notification.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.
