I had noticed that the error message always displays the port as 25 and assumed that was just a bad error message. But working the the .log file, all the EmailExceptions say the same thing, also. How do I convince KS to use the correct port?
Here’s a GMail example:
org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:25
Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 25;
Have tried with all three protocols: NONE, SSL, and TLS. TLS is the one that should be used. But, none of the three (3) work. I get the same error message each time, with one exception (the port number):
The default port of “25” is forced (despite using 587), unless I change the Protocol to SSL. The test email still errors out, BUT, the port changes to “587” in the error msg.
Turns out that Office 365 has a problem with Katalon Studio that we were unable to resolve. So, in the interest of time constraints, the answer was to set up a relay from our domain to Office 365, point Katalon to that relay address which is governed by our firewall, and then white list the internal IP addresses that have Katalon Studio installed. This enabled the functionality.