SMPT email notification not working

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)

is this part of the problem?

  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?

we are using microsoft, I did setup profile.

thanks for responding

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.

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

this is what I get from the email test

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

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:

(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.


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

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

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.

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?

what do you mean by whitelisted?

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?"

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.