# \[bug-11887\]Alarm Pipeline Fails to send (SMTP Profile working)

**URL:** <https://forum.inductiveautomation.com/t/bug-11887-alarm-pipeline-fails-to-send-smtp-profile-working/31129>\
**Category:** Ignition\
**Created:** [January 8, 2020, 3:34am UTC](https://forum.inductiveautomation.com/t/bug-11887-alarm-pipeline-fails-to-send-smtp-profile-working/31129 "2020-01-08T03:34:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AIO](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/aio/32/87549_2.png) [@AIO](https://forum.inductiveautomation.com/u/AIO)\
**Post date:** [January 8, 2020, 3:34am UTC](https://forum.inductiveautomation.com/t/bug-11887-alarm-pipeline-fails-to-send-smtp-profile-working/31129/1 "2020-01-08T03:34:18Z")

</div>

Hey folks,

Ignition 7.9.3

I’m working with an SMTP server with a username without a password, trying to send alarms. See below for where I’m at with it.

- Settings proven via system.net.sendEmail.
- Adding a dummy password to the below script still succeeds in sending.

```auto
smtp = "smtp.example.com"
username = "example@clientEmail.com"
subject = "Test Alarm"
body = "Test Email"
recipients = ["me@myCompanyEmail.com"]
system.net.sendEmail(smtp, username, subject, body, 0, recipients)

```

- SMTP Profile proven via system.net.sendEmail

```auto
recipients = ["me@myCompanyEmail.com"]
system.net.sendEmail(smtpProfile = "Test", fromAddr = “example@clientEmail.com”, 
     to = recipients, subject = "Test SMTP")

```

- Testing an Alarm Notification Profile via the gateway using the same SMTP Profile gives the following error:

 ![Alarm%20Pipeline%20Error](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/6c003e2733ff005c5cc10914b3bcd4a89a02ad18.png)

- Adding a dummy password to the SMTP server yields logging that indicates success, however no email ever arrives:

 ![SMTP%20Test%202](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b4acd4fbd76f58ce07efba9d26aacb9181dfb7df.png)

At this point, I am at the conclusion that whatever is happening is a bug within the Alarm Notification Profile and the way it tries to interact with the SMTP server, as the scripting works perfect.

Hoping someone has encountered this before. While we can use scripting blocks to send all of our notifications, it would be better for us to use the Alarm Notification module.

Cheers!

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 8, 2020, 4:14pm UTC](https://forum.inductiveautomation.com/t/bug-11887-alarm-pipeline-fails-to-send-smtp-profile-working/31129/2 "2020-01-08T16:14:07Z")

</div>

The good news - you’re not wrong, it is just a bug.  
The bad news - there’s no direct workaround within notification pipelines, so you’ll have to wait for us to fix it, and it’s on a low priority backlog. Working around via scripting is probably the best thing for now.

---

<div class="post-metadata">

**Author:** ![AIO](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/aio/32/87549_2.png) [@AIO](https://forum.inductiveautomation.com/u/AIO)\
**Post date:** [January 8, 2020, 4:49pm UTC](https://forum.inductiveautomation.com/t/bug-11887-alarm-pipeline-fails-to-send-smtp-profile-working/31129/3 "2020-01-08T16:49:43Z")

</div>

Thanks, Paul.

Would you expect an account requiring a password to resolve the issue? Looking for ways we can use the native alarm notification blocks and user notification.

Alternately, can we specify on-call rosters for scripted notifications?

Cheers.

---

<div class="post-metadata">

**Author:** ![AIO](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/aio/32/87549_2.png) [@AIO](https://forum.inductiveautomation.com/u/AIO)\
**Post date:** [January 8, 2020, 11:01pm UTC](https://forum.inductiveautomation.com/t/bug-11887-alarm-pipeline-fails-to-send-smtp-profile-working/31129/4 "2020-01-08T23:01:39Z")

</div>

Paul,

I managed to find a solution in this instance.

In order to have the alarm notification work:

- SMTP profile must be configured with a hostname, but no username or password.

 ![SMTP%20Profile1](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f97ba68f54b14edf28b202205e885ab32f43ec95.png)

- Alarm Pipeline Notification Block must have the username in the from address.

![Alarm%20Pipeline%20Config1](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/5a55c53491c525e86ad354955abb70623ac35b6d.png)

Following this set-up, it will allow the server to send emails via the notification pipeline without a password.
