# SMTP setting without password

**URL:** <https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [February 18, 2021, 12:47pm UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560 "2021-02-18T12:47:48Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yeyu2509](https://avatars.discourse-cdn.com/v4/letter/y/f19dbf/32.png) [@Yeyu2509](https://forum.inductiveautomation.com/u/Yeyu2509)\
**Post date:** [February 18, 2021, 12:47pm UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560/1 "2021-02-18T12:47:48Z")

</div>

Hello,  
I try to add an SMTP profile (no password) in the email settings.  
If I turned the pipeline mode to TEST MODE. The messages shows  
_[hostname=,port=25] THIS PROFILE IS RUNNING IN TEST MODE. The following email WOULD have been sent_ So seems the configuration is okay.

While I test the _pipeline and notification profile_, there is below error message.  
Do you have any idea how to solve it  
Thanks in advance 🙂

javax.mail.AuthenticationFailedException: failed to connect, no password specified?  
at javax.mail.Service.connect(Service.java:398)  
at javax.mail.Service.connect(Service.java:245)  
at javax.mail.Service.connect(Service.java:194)  
at javax.mail.Transport.send0(Transport.java:253)  
at javax.mail.Transport.send(Transport.java:124)  
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.run(EmailNotificationProfile.java:665)  
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$2.run(EmailNotificationProfile.java:447)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at java.lang.Thread.run(Thread.java:745)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 18, 2021, 1:03pm UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560/2 "2021-02-18T13:03:14Z")

</div>

> [@Yeyu2509](#):
>
> So seems the configuration is okay.

No, running in test mode implies nothing about your SMTP configuration being correct. No contact with the SMTP server is attempted.

What version of Ignition are you using? I think some versions had an issue with trying to use no password but it may also turn out that you actually need one.

---

<div class="post-metadata">

**Author:** ![Yeyu2509](https://avatars.discourse-cdn.com/v4/letter/y/f19dbf/32.png) [@Yeyu2509](https://forum.inductiveautomation.com/u/Yeyu2509)\
**Post date:** [February 18, 2021, 1:07pm UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560/3 "2021-02-18T13:07:01Z")

</div>

Thanks for the fast reply!  
The version I’m using is 7.9.2. If it’s the version which faceing this problem?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 18, 2021, 1:18pm UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560/4 "2021-02-18T13:18:56Z")

</div>

Seems it was a much older version than 7.9.

This particular error message means that a connection to your configured SMTP server was not able to be made, and that it noticed you did not specify a password and is suggesting that might be the issue.

---

<div class="post-metadata">

**Author:** ![Yeyu2509](https://avatars.discourse-cdn.com/v4/letter/y/f19dbf/32.png) [@Yeyu2509](https://forum.inductiveautomation.com/u/Yeyu2509)\
**Post date:** [February 18, 2021, 1:44pm UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560/5 "2021-02-18T13:44:10Z")

</div>

Thank you for the reply!  
I just noticed that it’s because I wrongly set the username which leads this message.  
Now seems no error from log.  
Last question, is there any way that I could find(or configure) the log like" the notification has been sent to the receivers". Cuz I can not involve myself to the receivers list.  
But for debug purpose I would like to see the positive log (like the one you have in the TEST MODE)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 18, 2021, 2:15pm UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560/6 "2021-02-18T14:15:08Z")

</div>

There’s nothing built in to do this, but you could set up auditing and check the audit log or insert a Script Block somewhere in the pipeline with your own logging statement in it.

---

<div class="post-metadata">

**Author:** ![Yeyu2509](https://avatars.discourse-cdn.com/v4/letter/y/f19dbf/32.png) [@Yeyu2509](https://forum.inductiveautomation.com/u/Yeyu2509)\
**Post date:** [February 18, 2021, 3:13pm UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560/7 "2021-02-18T15:13:41Z")

</div>

I have activated the Audit for logging.  
Now the problem I met is

1. I tested the _pipeline and notification profile_ from gateway -\> User A could receive it -\> ok
2. I try to active the alarm  
from the Stato/Diagbostics/Log -\> email notification :no error logged  
Infomation (pipeline) : Alarm pipeline started.  
from Audit table -\> email has been sent to User A with STATUS\_CODE=192  
but from the point 2, User A haven’t received any email.

If you have any idea where I might miss to check  
Thanks

---

<div class="post-metadata">

**Author:** ![r.lebohec](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/r.lebohec/32/3704_2.png) [@r.lebohec](https://forum.inductiveautomation.com/u/r.lebohec)\
**Post date:** [April 30, 2021, 9:03am UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560/8 "2021-04-30T09:03:28Z")

</div>

Hello @Yeyu2509 and @Kevin.Herron ,

I just ran into a similar issue today on my 7.9.12 gateway.  
Step 1: I define an SMTP profile for sending email with a user account without password  
\_ The profile test with the gateway HMI (config\> Email settings\> test) works correctly OK  
\_ If I define a password, there is an error ‘No authentication mechanisms supported by both server and client’ NOK

Step 2: I associate the previous SMTP profile with the alarm notification.  
\_ The pipeline returns an empty password error and there is no send  
\_ If I define a password, there is an error ‘No authentication mechanisms supported by both server and client’ NOK

It seems that the ‘email sending test’ function works differently than the sending of email by the alarm notification module.  
Thanks

 ![Capture_Mail](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/4/7490566f8c365ad9021f67c97f6f9772085ab07c.png)

---

<div class="post-metadata">

**Author:** ![mcarritt1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mcarritt1/32/4262_2.png) [@mcarritt1](https://forum.inductiveautomation.com/u/mcarritt1)\
**Post date:** [October 4, 2021, 11:33am UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560/9 "2021-10-04T11:33:16Z")

</div>

sorry to revive an old thread, but I couldnt find the answer so sharing here.

I had the same problem occuring where I had a working SMTP profile (no password) setup that I could send emails with, but it wouldnt work with the notification block in an alarm pipeline.

```auto
javax.mail.AuthenticationFailedException: failed to connect, no password specified?

```

I just put in a random password into the email settings of the profile and saved it, and that made it work.

---

<div class="post-metadata">

**Author:** ![r.lebohec](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/r.lebohec/32/3704_2.png) [@r.lebohec](https://forum.inductiveautomation.com/u/r.lebohec)\
**Post date:** [October 4, 2021, 11:52am UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560/10 "2021-10-04T11:52:50Z")

</div>

A workaround is to use a script with the function ’ system.net.sendEmail’([system.net.sendEmail - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/system.net.sendEmail))’

---

<div class="post-metadata">

**Author:** ![mcarritt1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mcarritt1/32/4262_2.png) [@mcarritt1](https://forum.inductiveautomation.com/u/mcarritt1)\
**Post date:** [October 4, 2021, 12:09pm UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560/11 "2021-10-04T12:09:14Z")

</div>

true, but you lose some of the nice things about the notification block, like consolidating alarms

---

<div class="post-metadata">

**Author:** ![r.lebohec](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/r.lebohec/32/3704_2.png) [@r.lebohec](https://forum.inductiveautomation.com/u/r.lebohec)\
**Post date:** [October 4, 2021, 12:17pm UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560/12 "2021-10-04T12:17:10Z")

</div>

At the time, I opened a support ticket concerning this point … ‘to be continue’

---

<div class="post-metadata">

**Author:** ![yu.ye](https://avatars.discourse-cdn.com/v4/letter/y/b9e5f3/32.png) [@yu.ye](https://forum.inductiveautomation.com/u/yu.ye)\
**Post date:** [October 4, 2021, 12:54pm UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560/13 "2021-10-04T12:54:23Z")

</div>

Hello @r.lebohec  
Seems you have met the error similar with the one I had before. In this case, might be your smtp server also does not require any auth? and you could try to empty both username and password section in SMTP configuration and then test alarming part?  
For me, it works! Hope this info could be helpful. 🙂

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [March 1, 2023, 4:23pm UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560/14 "2023-03-01T16:23:25Z")

</div>

Reviving an old thread - I am using 8.1.20 and am facing the same issue.

We have a SMTP profile that is setup that does not have a password for the email. Running tests directly through this works fine.

We have an alarm pipieline we are testing that ends with sending an email out. When that gets execute we get an error

```auto
javax.mail.AuthenticationFailedException: failed to connect, no password specified?

```

in the logs like @r.lebohec has in his second error.

Is the solution still to just put a random password into the SMTP configuration per @mcarritt1 's reply? That does work. Just seems weird

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 1, 2023, 4:40pm UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560/15 "2023-03-01T16:40:09Z")

</div>

Looks like it. Both our code and the Java mail code are weird about having a username but no password specified. Inconceivable bad practice I suppose.

---

<div class="post-metadata">

**Author:** ![Brad\_Niemi1](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Brad\_Niemi1](https://forum.inductiveautomation.com/u/Brad_Niemi1)\
**Post date:** [February 29, 2024, 10:44pm UTC](https://forum.inductiveautomation.com/t/smtp-setting-without-password/43560/16 "2024-02-29T22:44:28Z")

</div>

I am running 8.1.37 vision  
I am getting the no password found error. In the user config, it requires me to enter a password. Is this normal with the newer version?

Also, using a VOIP call, it errors on no voice found. Where do i find a voice?
