I am trying to set up a SMTP profile on ignition. This would be for alarm notifications as well as the reporting module daily email. I'm receiving an error everytime I attempt to test send an email. Is this a common occurance with gmail?
-smtp.gmail.com.
-port 465
-SSL/TLS is connected,
-username is email
-password is password for email.
error message I am receiving is:
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmail.com, 465; timeout 10000;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com
Can you use your company's internal SMTP server? Often these don't require authentication for mail from inside the organisation.
Tip: set the 'from' address to something that will help IT find the source of the email in the event that it starts flooding the system due to a code error, or whatever. e.g., engineering.ignition.gateway01@mycompany.com.
So what I found out is that our company never set up a DNS server for the gateway. I had to use the IP for the smtp.gmail.com in order to get out. I did have to enable the app password. Thank you Ryan. I appreciate it. I am learning ignition, as I'm use to wonderware and Panelview. There is a learning curve for sure, but I like it so far.
I had to use the IP address for the smtp profile. IT never had a DNS server set up. I'm not an IT person by trade, so it was a last resort to try for me. I don't know how to set up a DNS server on gateway either.