# \[Bug-14441\]: Alarm emails were sent error with SMTP profile

**URL:** <https://forum.inductiveautomation.com/t/bug-14441-alarm-emails-were-sent-error-with-smtp-profile/26252>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [July 3, 2019, 6:25am UTC](https://forum.inductiveautomation.com/t/bug-14441-alarm-emails-were-sent-error-with-smtp-profile/26252 "2019-07-03T06:25:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![weixionglichina](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weixionglichina/32/10650_2.png) [@weixionglichina](https://forum.inductiveautomation.com/u/weixionglichina)\
**Post date:** [July 3, 2019, 6:25am UTC](https://forum.inductiveautomation.com/t/bug-14441-alarm-emails-were-sent-error-with-smtp-profile/26252/1 "2019-07-03T06:25:07Z")

</div>

As Title, we are not allowed to send email with user name and password, so I just leave it blank.

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

Similar links

> [@Email alarming not working](http://forum.inductiveautomation.com/t/email-alarming-not-working/18382/5):
>
> Only when i set this from no to yes [image] I get this in logs… Otherwise…nothing

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

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [July 3, 2019, 2:15pm UTC](https://forum.inductiveautomation.com/t/bug-14441-alarm-emails-were-sent-error-with-smtp-profile/26252/2 "2019-07-03T14:15:00Z")

</div>

The username and password are those of the account for the SMTP Server account. Without a username and password for the SMTP account, the server will not allow access because you have not authenticated with the service.

For clarity:  
If I were to use Google’s GMail as my SMTP server, I would need a GMail account, in addition to my Ignition account. This screen is requesting the credentials for the GMail account. Without the GMail account’s username and password, Google will not allow me to use them as an SMTP server.

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [July 3, 2019, 2:49pm UTC](https://forum.inductiveautomation.com/t/bug-14441-alarm-emails-were-sent-error-with-smtp-profile/26252/3 "2019-07-03T14:49:37Z")

</div>

alot of companies dont require username and password to send emails. gmail would require it.

I would try and set this up directly on the email notification profile as opposed to using the smtp profile setup on the gateway. I seem to have run into a bug where the smtp profile wouldnt work but setting this up directly on the email notification profile worked fine.

---

<div class="post-metadata">

**Author:** ![weixionglichina](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weixionglichina/32/10650_2.png) [@weixionglichina](https://forum.inductiveautomation.com/u/weixionglichina)\
**Post date:** [July 4, 2019, 2:13am UTC](https://forum.inductiveautomation.com/t/bug-14441-alarm-emails-were-sent-error-with-smtp-profile/26252/4 "2019-07-04T02:13:39Z")

</div>

> [@diat150](#):
>
> alot of companies dont require username and password to send emails. gmail would require it.
> 
> I would try and set this up directly on the email notification profile as opposed to using the smtp profile setup on the gateway. I seem to have run into a bug where the smtp profile wouldnt work but setting this up directly on the email notification profile worked fine.

It works as charm after I don't use SMTP Profile, thank you bro! @diat150 .  
By the way, @cmallonee this is a bug please follow it and report to your developers soon.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/4e1c3d58ab9c3085d6f7be602172d31a9bbe47ea.png)

---

<div class="post-metadata">

**Author:** ![jspecht](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jspecht/32/6465_2.png) [@jspecht](https://forum.inductiveautomation.com/u/jspecht)\
**Post date:** [July 15, 2019, 6:01pm UTC](https://forum.inductiveautomation.com/t/bug-14441-alarm-emails-were-sent-error-with-smtp-profile/26252/5 "2019-07-15T18:01:32Z")

</div>

Hi @diat150 and @weixionglichina -

I suspect that you have a non-empty password set in the SMTP profile. If you were to go to your SMTP profile, check the box to change the password, and leave it blank, then save, then use the SMTP profile instead of the direct email notification profile, does it work as expected?

---

<div class="post-metadata">

**Author:** ![awalker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awalker/32/6874_2.png) [@awalker](https://forum.inductiveautomation.com/u/awalker)\
**Post date:** [July 29, 2019, 5:12pm UTC](https://forum.inductiveautomation.com/t/bug-14441-alarm-emails-were-sent-error-with-smtp-profile/26252/6 "2019-07-29T17:12:31Z")

</div>

This issue was fixed in the 8.0.4 nightly build that was uploaded today (7/29).

---

<div class="post-metadata">

**Author:** ![nathan.dehoog](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nathan.dehoog/32/11903_2.png) [@nathan.dehoog](https://forum.inductiveautomation.com/u/nathan.dehoog)\
**Post date:** [July 31, 2019, 2:10am UTC](https://forum.inductiveautomation.com/t/bug-14441-alarm-emails-were-sent-error-with-smtp-profile/26252/7 "2019-07-31T02:10:57Z")

</div>

I have come across a similar issue where the SMTP server requires only a username and a blank password. I configured the an SMTP profile with the appropriate settings and I can send emails using the test function. However, when the SMTP profile is linked to a Email Notification Profile and then subsequently called by an alarm pipeline I get the following error in the gateway event log.

 ![Error_EmailNotificationPasswordBlank](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/95df6aaa7b7b68b5561d972be8357e9b923da723.png)

I originally discovered this issue in v8.0.2 and upgrade to 8.0.4 after seeing the posts on this thread.  
I still have the same issue in v8.0.4.

It seems as though the Email Notification Profile does not like having a blank password field even though the SMTP profile works with a blank password .

---

<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:03pm UTC](https://forum.inductiveautomation.com/t/bug-14441-alarm-emails-were-sent-error-with-smtp-profile/26252/8 "2020-01-08T23:03:42Z")

</div>

Nathan,

I realize this is late, but perhaps it can help you or someone else.  
I ran into this same issue, and found that when trying to send via an SMTP server with a username and no password, I had to:

- Configure the SMTP server with the hostname, but no username
- Put the username in the From Address of the notification block.

This allowed me to send via the alarm notification pipeline.  
Read more here:

> [@\[bug-11887\]Alarm Pipeline Fails to send (SMTP Profile working)](http://forum.inductiveautomation.com/t/bug-11887-alarm-pipeline-fails-to-send-smtp-profile-working/31129/4):
>
> 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. Alarm Pipeline Notification Block must have the username in the from address. [Alarm%20Pipeline%20Config1] Following this set-up, it will allow the server to send emails via the notification pipeline without a password.

---

<div class="post-metadata">

**Author:** ![nathan.dehoog](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nathan.dehoog/32/11903_2.png) [@nathan.dehoog](https://forum.inductiveautomation.com/u/nathan.dehoog)\
**Post date:** [January 14, 2020, 9:21pm UTC](https://forum.inductiveautomation.com/t/bug-14441-alarm-emails-were-sent-error-with-smtp-profile/26252/9 "2020-01-14T21:21:00Z")

</div>

AIO,

I resolved this issue as I found that i was able to utilise the SMTP server with blank username and password fields in the SMTP Profile configuration. The IT team that provided me information on the SMTP server at the time did not understand how it worked and provided me with incorrect information.

Thanks for the useful info though, I am sure it will come in handy in the future.
