# Alarm notification by mail does not work

**URL:** <https://forum.inductiveautomation.com/t/alarm-notification-by-mail-does-not-work/31513>\
**Category:** Ignition\
**Created:** [January 22, 2020, 1:25pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-by-mail-does-not-work/31513 "2020-01-22T13:25:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![lachguerabdallah](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lachguerabdallah/32/25558_2.png) [@lachguerabdallah](https://forum.inductiveautomation.com/u/lachguerabdallah)\
**Post date:** [January 22, 2020, 1:25pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-by-mail-does-not-work/31513/1 "2020-01-22T13:25:35Z")

</div>

Hello  
Alarm notification by mail does not work . I enclose captures of the entire configuration.  
Can somebody help me?  
thanks you.

 ![37](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/26903229837d0f55b33c6ac250bc9aaa249e897d.png) ![20](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/62bbeb2af190de03dc9b75eef6f1d48840714c6e.png) ![23](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/ed1c9a62892c61a48e645c4bb0c7f5987d716e2e.png) ![36](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/735d7d5e79951121a5c551209ecb8453c451d7bc.png) ![43](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3ca1cce983e15829c2d38e0eb7a74124188cca66.png) ![03](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/e1d463dfc0be11e83eb6545c5142ccd869702d6b.png)

---

<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:** [January 22, 2020, 1:29pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-by-mail-does-not-work/31513/2 "2020-01-22T13:29:02Z")

</div>

There should be some logs in the gateway if sending fails.

Gmail is unlikely to let you send email using a from address of “default@example.com”, so you might want to correct that and try again.

---

<div class="post-metadata">

**Author:** ![lachguerabdallah](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lachguerabdallah/32/25558_2.png) [@lachguerabdallah](https://forum.inductiveautomation.com/u/lachguerabdallah)\
**Post date:** [January 22, 2020, 2:28pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-by-mail-does-not-work/31513/3 "2020-01-22T14:28:15Z")

</div>

thanks for your reply.  
He changed the email but it still doesn’t work.

 ![17](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/63490926c6199e5fb149316c02db9a108c8bae15.png)

---

<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:** [January 22, 2020, 2:37pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-by-mail-does-not-work/31513/4 "2020-01-22T14:37:16Z")

</div>

If you click that little “+” button you can get the rest of the error details.

---

<div class="post-metadata">

**Author:** ![lachguerabdallah](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lachguerabdallah/32/25558_2.png) [@lachguerabdallah](https://forum.inductiveautomation.com/u/lachguerabdallah)\
**Post date:** [January 22, 2020, 3:17pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-by-mail-does-not-work/31513/5 "2020-01-22T15:17:58Z")

</div>

```auto
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465

at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2055)

at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:697)

at javax.mail.Service.connect(Service.java:386)

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.sendMessage(EmailNotificationProfile.java:731)

at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.buildAndMaybeSendMessage(EmailNotificationProfile.java:719)

at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.run(EmailNotificationProfile.java:638)

at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile.lambda$sendNotification$0(EmailNotificationProfile.java:466)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.base/java.lang.Thread.run(Unknown Source)

Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

at java.base/sun.security.ssl.HandshakeContext.(Unknown Source)

at java.base/sun.security.ssl.ClientHandshakeContext.(Unknown Source)

at java.base/sun.security.ssl.TransportContext.kickstart(Unknown Source)

at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:543)

at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:348)

at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:236)

at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2019)

``
```

---

<div class="post-metadata">

**Author:** ![lachguerabdallah](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lachguerabdallah/32/25558_2.png) [@lachguerabdallah](https://forum.inductiveautomation.com/u/lachguerabdallah)\
**Post date:** [January 22, 2020, 4:40pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-by-mail-does-not-work/31513/6 "2020-01-22T16:40:15Z")

</div>

now it works, I used another server. The server that I used is [mailjet.com](http://mailjet.com)  
Thanks a lot

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [January 22, 2020, 9:33pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-by-mail-does-not-work/31513/7 "2020-01-22T21:33:57Z")

</div>

Fwiw, Gmail doesn’t really support emails from an automated system due to their security requirements.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [May 24, 2020, 5:47pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-by-mail-does-not-work/31513/8 "2020-05-24T17:47:43Z")

</div>

I’m using mailjet but still can’t make it work. I need your advice!

---

<div class="post-metadata">

**Author:** ![lachguerabdallah](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lachguerabdallah/32/25558_2.png) [@lachguerabdallah](https://forum.inductiveautomation.com/u/lachguerabdallah)\
**Post date:** [May 26, 2020, 11:52pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-by-mail-does-not-work/31513/9 "2020-05-26T23:52:43Z")

</div>

mailjet has stopped working, I will look for another alternative, if it works for me I will tell you

---

<div class="post-metadata">

**Author:** ![jwilliams](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@jwilliams](https://forum.inductiveautomation.com/u/jwilliams)\
**Post date:** [August 3, 2022, 7:42pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-by-mail-does-not-work/31513/10 "2022-08-03T19:42:47Z")

</div>

I realize this is old but I just went through this today and couldn’t figure out why my SMTP setup was not working correctly. So this is for anyone else that may come across the same issue, you can use Gmail smtp, you just have to generate an App Password as Gmail no longer supports what they consider “less secure apps”.

> **[Less secure apps & your Google Account - Google Account Help](https://support.google.com/accounts/answer/6010255)**
>
> To help keep your account secure, from May 30, 2022, ​​Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your

To generate an app password you have to login to your Google Account then find the “Manage Your Google Account” button. From there navigate to Security and find the heading “Signing in To Google”

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/d/dd096e9a44d895f8d05f53af6178872e5623880d.png)  
You can then click on the App Passwords tab and follow the instructions to generate it. That password is then used on the _Networking \> Email Settings \<_ tab or in the _Alarming \> Notification \<_ tab to allow sending emails from an email address.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/e/5e214c4a67d1e59db299dc231e3b4847cca42eb2.png)

If you use the Email Settings option you can easily test your SMTP setup by using the More dropdown and clicking test and entering the same email address you used to setup the SMTP as the From address. You will know it works if you get what is inside the green box, any other message means it failed.

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