Unable to send email (attached logs)

Hi, I followed all the documentations and read a bunch of threads but I’m stuck on why my mails are not sending

!ENTRY org.eclipse.e4.ui.workbench 4 0 2018-08-27 19:16:14.020

!MESSAGE

!STACK 0

org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:465

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:74)

at com.kms.katalon.composer.execution.settings.MailSettingsPage$11.run(MailSettingsPage.java:418)

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: 465;

nested exception is:

java.net.ConnectException: Connection timed out: connect

at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)

at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)

at javax.mail.Service.connect(Service.java:297)

at javax.mail.Service.connect(Service.java:156)

at javax.mail.Service.connect(Service.java:105)

at javax.mail.Transport.send0(Transport.java:168)

at javax.mail.Transport.send(Transport.java:98)

at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1411)

… 4 more

Caused by: java.net.ConnectException: Connection timed out: connect

at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)

at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)

at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

at java.net.Socket.connect(Socket.java:589)

at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)

at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:230)

at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:163)

at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)

… 11 more

I have ever experienced a similar incident: being unable to connect to SMTP host: smtp.gmail.com, port: 465;

G-Mail’s SMTP host requires clients to meet their security standard, and if client (including Katalon Studio) is regarded insecure, then connection request is refused. The following article give a bit of information concerning this:
https://support.google.com/accounts/answer/6010255?hl=en

Finally I gave up connecting to Gmail’s SMTP Host. I chose a less-demanding Mailing service to send Email from Katalon Studio.

kazurayam said:

I have ever experienced a similar incident: being unable to connect to SMTP host: smtp.gmail.com, port: 465;

G-Mail’s SMTP host requires clients to meet their security standard, and if client (including Katalon Studio) is regarded insecure, then connection request is refused. The following article give a bit of information concerning this:
https://support.google.com/accounts/answer/6010255?hl=en

Finally I gave up connecting to Gmail’s SMTP Host. I chose a less-demanding Mailing service to send Email from Katalon Studio.

Which Email did you decide to go with? I set the security and everything and still couldn’t get it to work. The only way I could get it to work is by turning off any antivirus programs but obviously I don’t want to for safety reasons.

I used the mail service provided the Internet Service Provider which I pay for. It is not free of charge, so I hesitate to name it here.