# Email Notification Not working with Gmail Settings

**URL:** <https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812>\
**Category:** Ignition\
**Created:** [March 17, 2015, 6:01pm UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812 "2015-03-17T18:01:38Z")\
**Posts on this page:** 16\
**Page:** 2

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [March 18, 2015, 3:03pm UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812/21 "2015-03-18T15:03:42Z")

</div>

Settings look okay, although to send to non-Gmail/Google users, you must use SSL

Is IPv6 blocked? I seem to remember Java prefers to use IPv6 by default.

Or IPv6 not having access to the internet.

If you don’t use IPv6 for anything, you can turn it off, forcing Java to use IPv4.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [March 18, 2015, 3:05pm UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812/22 "2015-03-18T15:05:33Z")

</div>

[quote=“KathyApplebaum”]Very odd – I can see them when I’m logged out, but not when I’m logged in. ![:scratch:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76d1620bec252bfac07050c889ff5a91dc8a9c25.gif ":scratch:")

I’ll alert our forum guru.[/quote]

Also, if I’m logged on thrugh the [ec2-204-236-130-104.us-west-1.compute.amazonaws.com](http://ec2-204-236-130-104.us-west-1.compute.amazonaws.com) url (given with the automated notifications), I can see the OP’s pics but not others. One more nugget of info for the forum guru. 🙂

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [March 18, 2015, 4:54pm UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812/23 "2015-03-18T16:54:09Z")

</div>

Our forum guru has worked his magic. All should be well. 😃

---

<div class="post-metadata">

**Author:** ![kattikartik7](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@kattikartik7](https://forum.inductiveautomation.com/u/kattikartik7)\
**Post date:** [March 18, 2015, 6:11pm UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812/24 "2015-03-18T18:11:58Z")

</div>

I think I have all the settings correct. What could be the reason for not able to send the mail through mail notification? I tried third party testing service to test the smtp server settings. I have the same thing going on with it also. Further, I tried it with yahoo mail, but I did not have any sucess with it either. So, should I write a script on Python and link it to the notification? Is that the only way possible?

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/ef76b9ebbb45b1a08252a9c76a3e2c09242fcaa1.png)

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [March 18, 2015, 6:12pm UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812/25 "2015-03-18T18:12:32Z")

</div>

To answer the original question, here’s what worked for me.

First, I have two-factor authentication turned on in my personal gmail account. When I’ve used gmail for testing SMTP stuff before (inside or outside of Ignition), I’ve never had any luck with port 25. YMMV.

My settings are port 465, use SSL/TLS, and I’m using an application specific password. ([support.google.com/mail/answer/1173270?hl=en](https://support.google.com/mail/answer/1173270?hl=en))

Also note that this is a regular gmail account, not a Google Apps account. In my Google Apps account, the username doesn’t have @gmail.com at the end.

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

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [March 18, 2015, 6:31pm UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812/26 "2015-03-18T18:31:50Z")

</div>

I’ll quote myself. I’m sure it got lost in the shuffle about images… 😉

[quote=“JordanCClark”]Settings look okay, although to send to non-Gmail/Google users, you must use SSL

I seem to remember Java prefers to use IPv6 by default.

Is IPv6 blocked? Or IPv6 not having access to the internet.

If you don’t use IPv6 for anything, you can turn it off, forcing Java to use IPv4.[/quote]

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [March 18, 2015, 7:11pm UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812/27 "2015-03-18T19:11:43Z")

</div>

Shouldn’t be an IPv6 vs IPv4 issue, since he was getting through to gmail and getting back a response.

Good to know why port 25 never works for me. FWIW, I had thought port 25 was never SSL, but looking at some gmail docs, it looks like they _require_ SSL with port 25. Learn something every day.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [March 18, 2015, 7:24pm UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812/28 "2015-03-18T19:24:57Z")

</div>

I don’t think he got a response from gmail, since he got the connect exception. This is happening before authentication.

---

<div class="post-metadata">

**Author:** ![kattikartik7](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@kattikartik7](https://forum.inductiveautomation.com/u/kattikartik7)\
**Post date:** [March 18, 2015, 7:45pm UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812/29 "2015-03-18T19:45:09Z")

</div>

Hi Kathy and Jordan,

Kathy: I tried it as you have suggested. I turned on the two factor step in gmail, but what I was not able to figure out was how to use the application specific password. I tried with normal gmail password and I still have the same error. Please see through this.

Jordan: I will check if it is because of this issue.

Thanks for your time guys.

Kartik

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/5a1451d7e103375cd9e24866bb9b6ff7932090a2.JPG)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/a4a593f3e87f9d1cae5ff83627638596dcda7386.PNG)

---

<div class="post-metadata">

**Author:** ![kattikartik7](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@kattikartik7](https://forum.inductiveautomation.com/u/kattikartik7)\
**Post date:** [March 18, 2015, 7:46pm UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812/30 "2015-03-18T19:46:38Z")

</div>

Sorry got the wrong picture. This is the screen with the setting configuration. Thanks. Karitk

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/746868e059fbf0c73ad7107b0903a9bfc43d21c9.png)

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [March 18, 2015, 7:52pm UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812/31 "2015-03-18T19:52:21Z")

</div>

So you need to solve the “Connection refused” issue. Check your firewalls. Can you reach it via telnet? `telnet smtp.gmail.com 465`

---

<div class="post-metadata">

**Author:** ![kattikartik7](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@kattikartik7](https://forum.inductiveautomation.com/u/kattikartik7)\
**Post date:** [March 18, 2015, 11:23pm UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812/32 "2015-03-18T23:23:23Z")

</div>

Kathy and Jordan,

I think it is firewall issue. I tried using a different internet connection and it worked. So, I have to check with my office staff to resolve the firewall. I did not use telnet till now for any of my applicaitons. I will see if this helps. Thanks for your responses. It really helped.

Kartik

---

<div class="post-metadata">

**Author:** ![gmiroclosa](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/gmiroclosa/32/21572_2.png) [@gmiroclosa](https://forum.inductiveautomation.com/u/gmiroclosa)\
**Post date:** [February 22, 2021, 9:03am UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812/34 "2021-02-22T09:03:04Z")

</div>

> [@KathyApplebaum](#):
>
> regular gmail acc

What Kathy Applebaum said it works for me.  
For a google account:  
hotname: [smtp.gmail.com](http://smtp.gmail.com)  
port: 465  
Use SSL/TLS port : TRUE  
username : USER (without @gmail.com) //(pay attention, previously I put @gmail.com  
and doesn't works for me)

And, one time is created, test that you've internet connection and test directly on smpt profile  
From: USER (with @gmail.com)  
TO : ANOTHER\_USER (with @gmail.com)

---

<div class="post-metadata">

**Author:** ![srb](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@srb](https://forum.inductiveautomation.com/u/srb)\
**Post date:** [June 24, 2021, 8:23pm UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812/35 "2021-06-24T20:23:54Z")

</div>

Just adding to this:

I had to enable ‘Allow less secure apps’ in Gmail settings ([https://myaccount.google.com/lesssecureapps](https://myaccount.google.com/lesssecureapps))

---

<div class="post-metadata">

**Author:** ![amr123](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@amr123](https://forum.inductiveautomation.com/u/amr123)\
**Post date:** [March 11, 2022, 3:57pm UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812/36 "2022-03-11T15:57:16Z")

</div>

Well, now Google is turning off the “less secure apps” option that fix my problem with gmail notifications. Now what email domain will work?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 11, 2022, 4:12pm UTC](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812/37 "2022-03-11T16:12:01Z")

</div>

If you are brave, and understand email protocols in depth, run your own mailserver for your own domain. Most would pay a hosting service to do so. Either way, you will have to use your own `from` address, not a gmail address.

[Previous page](https://forum.inductiveautomation.com/t/email-notification-not-working-with-gmail-settings/9812.md?page=1)
