Email Notification profile

Using a few different SMTPs
None have worked for me.

I have an imail hostname
default port 25
and there is not a username or password.
In the pipeline setup I have the account address in the FROM selection.
I’m emailing to the users group which I am a part of and my email address is a gmail one.
Do I need something more?

Is there any way someone could get me started using gmail or something common so I can figure out what I’m doing wrong?

One place to start might be to put the Notification Block into ‘Test Mode’ and then watch the console when you trigger the alarms to see who the message would have been sent to. If this all looks correct, then you can troubleshoot your email profile by searching for ‘EmailNotificationProfile’ on the Levels tab, turning the profile to DEBUG, and attempting notification again.

Time Logger Message
11:32:39 AM EmailNotificationProfile[EmailNotification] [hostname=tls://smtp.gmail.com,port=465] Error sending message to user ‘usr-prov:Security:/usr:aj’.

javax.mail.MessagingException: Unknown SMTP host: tls://smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: tls://smtp.gmail.com
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1970)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)
at javax.mail.Service.connect(Service.java:317)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at javax.mail.Transport.send0(Transport.java:194)
at javax.mail.Transport.send(Transport.java:124)
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.run(EmailNotificationProfile.java:317)
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$3.run(EmailNotificationProfile.java:172)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.UnknownHostException: tls://smtp.gmail.com
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:319)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:207)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)
… 11 more

No luck.

Why do you have a ‘tls://’ prefix on the hostname?

I tried other names and ports,
nothing has worked yet.
support.qualityunit.com/107274-H … -settings-

Edit:
I dropped the prefix on the host and kept the port.
It worked now and I am getting emails from gmail.