I have tried every setting, followed both sets of instructions in the documentation (the GMail advice is wrong by the way) and still it does not work. For GMail I allowed less secure apps.
I have read a bunch of messages posted here, including this one:
Which suggests downloading a tool from Github which I did. It says to compile it first – the the javac command is not recognized in Windows.
I’m REALLY enjoying working with Katalon Studio but if email is not working, that’s a showstopper for me.
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
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1421)
at org.apache.commons.mail.Email.send(Email.java:1448)
at com.kms.katalon.execution.util.MailUtil.sendTestMail(MailUtil.java:71)
at com.kms.katalon.composer.execution.settings.MailSettingsPage$11.run(MailSettingsPage.java:379)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
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.