# Setting up notifications

**URL:** <https://discuss.workflowgen.com/t/setting-up-notifications/643>\
**Category:** Process Design\
**Created:** [December 29, 2016, 4:54pm UTC](https://discuss.workflowgen.com/t/setting-up-notifications/643 "2016-12-29T16:54:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [December 29, 2016, 4:54pm UTC](https://discuss.workflowgen.com/t/setting-up-notifications/643/1 "2016-12-29T16:54:52Z")

</div>

### Notification templates

Notification templates are text files with HTML content and WorkflowGen macros. The default notification templates are located in the `\wfgen\App_Data\Templates\Emails` folder.

 ![](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/30217e666c39759b045e85cec9eaef752ce1baf8.png)

The stylesheet must be embedded in the template. You can attach a file to the notification using the `<WF_PROCESS_INST_RELDATA_FILE.YOURPROCESSDATANAME>` macro.

#### Example of notification template HTML code (body section):

```auto
...
   <body>
        <table class="Header" cellpadding="0" cellspacing="0">
            <tr>
                <td class="Title"><WF_PROCESS_INST_NAME></td>
            </tr>
        </table>
        <table class="Content">
            <tr>
                <td class="FieldLabel">Object :</td>
                <td class="FieldValue">A new action that you can handle has been created.</td>
            </tr>
            <tr>
                <td class="FieldLabel">Action :</td>
                <td class="FieldValue"><WF_ACTIVITY_INST_NAME></td>
            </tr>
            <tr>
                <td class="FieldLabel">Description :</td>
                <td class="FieldValue"><WF_ACTIVITY_INST_DESC></td>
            </tr>
            <tr>
                <td class="FieldLabel">Link :</td>
                <td class="FieldValue">
                    <a class="Link" href="<WF_LINK_ACTIVITY_INST_FORM>">View action</a>
                </td>
            </tr>
        </table>
        <table class="DataList" cellpadding="0" cellspacing="0">
            <tr>
                <td class="Header" colspan="2">Associated data:</td>
            </tr>
            <WF_PROCESS_INST_RELDATA>
            <tr class="ListRow" onmouseover="this.className='ListRowHighLight'" onmouseout="this.className='ListRow'">
                <td class="FieldLabel"><WF_KEY></td>
                <td class="FieldValue">&nbsp;<WF_VALUE></td>
            </tr>
            </WF_PROCESS_INST_RELDATA>
        </table>
        <WF_PROCESS_INST_RELDATA_FILE.FORM_ARCHIVE>
    </body>
...

```

You can also use a custom notification template in a process data and use this process data in an additional notification of a workflow action.

 ![](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/da188db47216a9262f561323e737c541a9b7e2b3.png)

### IIS SMTP gateway

We recommend using the local IIS SMTP server. There are several advantages to using an SMTP relay at the IIS WorkflowGen server:

- Better performance since messages are sent directly to the relay.

- Local SMTP acts as a buffer to avoid loss of emails if the main SMTP server is not available.

- Connection problems reduced because the relay manages communication problems.

- The relay is used to trace mail deliveries in its own log files.

- The relay allows you to limit access to WorkflowGen.

- The relay supports SMTP authentication and encryption (TLS encryption) to connect to your Exchange SMTP (or other mail server).

See the [SMTP Notifications](https://discuss.workflowgen.com/t/smtp-notifications/1532) topic for instructions on how to configure an IIS SMTP gateway.

## Pickup directories

WorkflowGen supports “pickup directories” for best performance and availability. This means that the notifications are created in a pickup directory managed by the SMTP server. IIS SMTP server and Exchange support pickup directory management.

 ![](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/06b20ac8e3619554e1cb71b38eef97252d024e57.png)

See the [SMTP Notifications](https://discuss.workflowgen.com/t/smtp-notifications/1532) topic for instructions on configuring a pickup directory.

---

<div class="post-metadata">

**Author:** ![kevin.lee](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@kevin.lee](https://discuss.workflowgen.com/u/kevin.lee)\
**Post date:** [May 17, 2019, 1:40pm UTC](https://discuss.workflowgen.com/t/setting-up-notifications/643/2 "2019-05-17T13:40:42Z")

</div>

Which file inside the \wfgen\App\_Data\Templates\Emails folder is the template is for the default to do action? Is it NOTIFY\_EXTRA\_TODO\_TEMPLATE?

---

<div class="post-metadata">

**Author:** ![qpomarel](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/qpomarel/32/262_2.png) [@qpomarel](https://discuss.workflowgen.com/u/qpomarel)\
**Post date:** [May 17, 2019, 3:13pm UTC](https://discuss.workflowgen.com/t/setting-up-notifications/643/3 "2019-05-17T15:13:39Z")

</div>

Hello Kevin,

The default template for todo notification is `NOTIFY_ASSIGN_TEMPLATE`.
