# Alarm Notification Sender Domain Error

**URL:** <https://forum.inductiveautomation.com/t/alarm-notification-sender-domain-error/93035>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 10, 2024, 8:26pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-sender-domain-error/93035 "2024-07-10T20:26:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MSI\_EXP\_Auto](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@MSI\_EXP\_Auto](https://forum.inductiveautomation.com/u/MSI_EXP_Auto)\
**Post date:** [July 10, 2024, 8:26pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-sender-domain-error/93035/1 "2024-07-10T20:26:12Z")

</div>

I am receiving this error in my logs when trying to use the alarm notification pipeline -

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

I am having no issues using this script -  
`system.net.sendEmail(smtpProfile = 'Profile 1',fromAddr="automation@msiexpress.com", subject="Test", body=body, html=1, to=recipients)`

The notification block is configured as such -  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/8/9868d327dd4c52dbfdb6b11d59575d878f93c0cf.png)

With the roster calculated like below. The "to email address" and "from email address" are the same in both the script and pipeline.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/0/908419420ecb844cce11239172e17311d63791da.png)

And my notification profile, "Email 1" is set to use "Profile 1" which is tested and working through the script console.

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

Is there some step or setting I am missing? All other sources I can find say that error occurs because of incorrect domain or foreign characters but the same From Address is working in the script. I do notice in the field for "From Address" in the block editor there appears to be a space before the address, not sure if this is just a cosmetic issue but I am unable to remove it.

---

<div class="post-metadata">

**Author:** ![SolarNomad](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SolarNomad](https://forum.inductiveautomation.com/u/SolarNomad)\
**Post date:** [July 10, 2024, 10:26pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-sender-domain-error/93035/2 "2024-07-10T22:26:15Z")

</div>

I could be wrong but it looks like there may be some leading whitespace in you From Address parameter in the email1 notification settings. You could also test creating a simpler notification pipeline to try and isolate the issue.

---

<div class="post-metadata">

**Author:** ![MSI\_EXP\_Auto](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@MSI\_EXP\_Auto](https://forum.inductiveautomation.com/u/MSI_EXP_Auto)\
**Post date:** [July 11, 2024, 1:31pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-sender-domain-error/93035/3 "2024-07-11T13:31:23Z")

</div>

Yes, I noticed that as well but I'm unable to remove it. No matter what I enter into that field there is leading whitespace. I did try adding leading whitespace into the from address on my script and it still worked as expected but maybe it is not the same effect.

I'm not sure how I can make the pipeline any simpler and still test it, this is all that it is at the moment -  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/5/05775f3331287cc08d9cd7f7ea055ac215e1d84d.png)

---

<div class="post-metadata">

**Author:** ![MSI\_EXP\_Auto](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@MSI\_EXP\_Auto](https://forum.inductiveautomation.com/u/MSI_EXP_Auto)\
**Post date:** [July 11, 2024, 4:26pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-sender-domain-error/93035/4 "2024-07-11T16:26:46Z")

</div>

I was using the Ack pipeline instead of the Active Pipeline, that error was throwing me off though.
