# SMPT email notification not working

**URL:** <https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225>\
**Category:** Ignition\
**Created:** [October 14, 2024, 3:47pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225 "2024-10-14T15:47:20Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marco\_Palomino](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Marco\_Palomino](https://forum.inductiveautomation.com/u/Marco_Palomino)\
**Post date:** [October 14, 2024, 3:47pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/1 "2024-10-14T15:47:20Z")

</div>

I am having issues configuring the email notifications

at javax.mail.Transport.send0(Transport.java:254)

at javax.mail.Transport.send(Transport.java:124)

at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.sendMessage(EmailNotificationProfile.java:827)

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

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

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

---

<div class="post-metadata">

**Author:** ![Marco\_Palomino](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Marco\_Palomino](https://forum.inductiveautomation.com/u/Marco_Palomino)\
**Post date:** [October 14, 2024, 3:50pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/2 "2024-10-14T15:50:33Z")

</div>

is this part of the problem?

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

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 14, 2024, 4:05pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/3 "2024-10-14T16:05:06Z")

</div>

1. Have you configured an SMTP profile on the gateway, Config | NETWORKING | Email Settings?
2. How did you set it up?
3. What host are you using for the service?
4. Did you run Config | NETWORKING | Email Settings | "More" dropdown | Test?

---

<div class="post-metadata">

**Author:** ![Marco\_Palomino](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Marco\_Palomino](https://forum.inductiveautomation.com/u/Marco_Palomino)\
**Post date:** [October 14, 2024, 5:57pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/4 "2024-10-14T17:57:03Z")

</div>

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

we are using microsoft, I did setup profile.

---

<div class="post-metadata">

**Author:** ![Marco\_Palomino](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Marco\_Palomino](https://forum.inductiveautomation.com/u/Marco_Palomino)\
**Post date:** [October 15, 2024, 3:29pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/5 "2024-10-15T15:29:44Z")

</div>

thanks for responding

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 15, 2024, 6:03pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/6 "2024-10-15T18:03:11Z")

</div>

That answers my questions 1 and 2.  
You didn't answer question 3, but if you are running from inside your business domain you might not need a password. If you do I recommend that you get IT to set up a service account for you with password set to never expire. (You can use your personal login for testing in the meantime.)  
You didn't answer question 4.

---

<div class="post-metadata">

**Author:** ![Marco\_Palomino](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Marco\_Palomino](https://forum.inductiveautomation.com/u/Marco_Palomino)\
**Post date:** [October 15, 2024, 7:39pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/7 "2024-10-15T19:39:25Z")

</div>

no, I did not run configuration. any advice where can I check this?

---

<div class="post-metadata">

**Author:** ![Marco\_Palomino](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Marco\_Palomino](https://forum.inductiveautomation.com/u/Marco_Palomino)\
**Post date:** [October 15, 2024, 7:43pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/8 "2024-10-15T19:43:14Z")

</div>

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

this is what I get from the email test

---

<div class="post-metadata">

**Author:** ![Marco\_Palomino](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Marco\_Palomino](https://forum.inductiveautomation.com/u/Marco_Palomino)\
**Post date:** [October 15, 2024, 7:47pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/9 "2024-10-15T19:47:17Z")

</div>

> [@Transistor](#):
>
> I recommend that you get IT to set up a service account for you with password set to never expire. (You can use your personal login for testing in the meantime.)

we are using Microsoft and it is required to use a OAuth2 client

---

<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:** [October 15, 2024, 7:51pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/10 "2024-10-15T19:51:51Z")

</div>

Then you'll need to use a new enough version of Ignition that will let you create an OAuth Email profile instead of a Classic Email profile:

> **[OAuth 2.0 Clients | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/platform/security/oauth-2-clients)**
>
> What is OAuth 2.0?

(Two steps--create the OAuth client as shown in the link, then create the email profile under Config =\> Networking =\> Email Settings.)

Since v8.1.24, apparently.

---

<div class="post-metadata">

**Author:** ![Marco\_Palomino](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Marco\_Palomino](https://forum.inductiveautomation.com/u/Marco_Palomino)\
**Post date:** [October 15, 2024, 8:03pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/11 "2024-10-15T20:03:02Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/4/84bda94fe39a89ddd6894647b42668b889613a40.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/d/cdd9922138e1bb1f743feeb7889f628335d8360a.png)

---

<div class="post-metadata">

**Author:** ![Marco\_Palomino](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Marco\_Palomino](https://forum.inductiveautomation.com/u/Marco_Palomino)\
**Post date:** [October 15, 2024, 8:04pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/12 "2024-10-15T20:04:05Z")

</div>

I had set up the Oauth2 client, well IT did it but I can not get s successful test

---

<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:** [October 15, 2024, 8:04pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/13 "2024-10-15T20:04:47Z")

</div>

You're going to need your IT group's help troubleshooting on the Microsoft side.

---

<div class="post-metadata">

**Author:** ![jbarry](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jbarry/32/68635_2.png) [@jbarry](https://forum.inductiveautomation.com/u/jbarry)\
**Post date:** [October 15, 2024, 8:06pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/14 "2024-10-15T20:06:56Z")

</div>

Has IT whitelisted your server that's sending messages on the SMTP server side? I run into OT servers not being whitelisted to send email a lot.

---

<div class="post-metadata">

**Author:** ![Marco\_Palomino](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Marco\_Palomino](https://forum.inductiveautomation.com/u/Marco_Palomino)\
**Post date:** [October 15, 2024, 8:11pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/15 "2024-10-15T20:11:53Z")

</div>

Did you guys set up something like this? is it IT and Microsoft authentication problem? do you guys think i am missing something on the scope section?

---

<div class="post-metadata">

**Author:** ![Marco\_Palomino](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Marco\_Palomino](https://forum.inductiveautomation.com/u/Marco_Palomino)\
**Post date:** [October 15, 2024, 8:12pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/16 "2024-10-15T20:12:41Z")

</div>

what do you mean by whitelisted?

---

<div class="post-metadata">

**Author:** ![jbarry](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jbarry/32/68635_2.png) [@jbarry](https://forum.inductiveautomation.com/u/jbarry)\
**Post date:** [October 15, 2024, 8:28pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/17 "2024-10-15T20:28:00Z")

</div>

Whitelisting is short-hand for allowing a computer to do something. IT usually defaults systems to not be able to talk to each other (or take an action) for security reasons and you need to "whitelist" a computer to be able to do something. I would say "Can you whitelist my server ABC to be able to send SMTP messages to SMTP server DEF?"

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 15, 2024, 9:36pm UTC](https://forum.inductiveautomation.com/t/smpt-email-notification-not-working/97225/18 "2024-10-15T21:36:40Z")

</div>

Whitelisting is the opposite of blacklisting (adding a bad actor to a list of users/devices that the service will refuse to allow to connect).

Many systems are configured to refuse connections by default and only allow access to devices on the whitelist.
