# Custom Message HTML - Alarm Notification

**URL:** <https://forum.inductiveautomation.com/t/custom-message-html-alarm-notification/112473>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [November 27, 2025, 6:26am UTC](https://forum.inductiveautomation.com/t/custom-message-html-alarm-notification/112473 "2025-11-27T06:26:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Lopez](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@David\_Lopez](https://forum.inductiveautomation.com/u/David_Lopez)\
**Post date:** [November 27, 2025, 6:26am UTC](https://forum.inductiveautomation.com/t/custom-message-html-alarm-notification/112473/1 "2025-11-27T06:26:11Z")

</div>

Hi everyone.

I’m working with alarm notification emails, and I’ve set up an HTML code as Custom Message binding

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/f/cfff7bf8cbab587432b68c415699a735fa754249.png)

```python
"<html>" +
"<div style='font-family: sans-serif; font-size: 14px; color: #1A2A40; background-color: #F0F6FF; padding: 10px; border-left: 4px solid #3B82F6; border-radius: 4px;'>" +
"<table style='border-collapse: collapse;'>" +
  "<tr><td style='padding: 4px 8px; font-weight: bold;'>Date & Time:</td><td style='padding: 4px 8px;'>" + dateFormat({Timestamp},'dd/MM/yyyy, EEEE h:m a') + "</td></tr>" +
  "<tr><td style='padding: 4px 8px; font-weight: bold;'>Date & Time:</td><td style='padding: 4px 8px;'>" + {[.]dateFromView} + "</td></tr>" +
"</table>" +
"</div>" +
"</html>"

```

The result is working as expected

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/d/7d1cece0fc1b32b2369673d996775745d3fea280.png)

However, I would like to configure the html code into a memory tag. The json shows this string and I assumed I need to save the value into the memory tag.

```json
"CustomEmailMessage":{
            "bindType":"Expression",
            "value":"\"\u003chtml\u003e\" +\r\n\"\u003cdiv style\u003d\u0027font-family: sans-serif; font-size: 14px; color: #1A2A40; background-color: #F0F6FF; padding: 10px; border-left: 4px solid #3B82F6; border-radius: 4px;\u0027\u003e\" +\r\n\"\u003ctable style\u003d\u0027border-collapse: collapse;\u0027\u003e\" +\r\n \"\u003ctr\u003e\u003ctd style\u003d\u0027padding: 4px 8px; font-weight: bold;\u0027\u003eDate \u0026 Time:\u003c/td\u003e\u003ctd style\u003d\u0027padding: 4px 8px;\u0027\u003e\" + dateFormat({Timestamp},\u0027dd/MM/yyyy, EEEE h:m a\u0027) + \"\u003c/td\u003e\u003c/tr\u003e\" +\r\n \"\u003ctr\u003e\u003ctd style\u003d\u0027padding: 4px 8px; font-weight: bold;\u0027\u003eDate \u0026 Time:\u003c/td\u003e\u003ctd style\u003d\u0027padding: 4px 8px;\u0027\u003e\" + {[.]dateFromView} + \"\u003c/td\u003e\u003c/tr\u003e\" +\r\n\"\u003c/table\u003e\" +\r\n\"\u003c/div\u003e\" +\r\n\"\u003c/html\u003e\""
         }

```

After applying the new binding to the memory tag

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/0/a03fdf44a15211f525948369693a7d695e4f1835.png)

I got this email

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/3/c3646b181bcb0d5a4316d994dc37978835482521.png)

Any thoughts on this one?

Cheers 🙂 !
