# Unable to send email (attached logs)

**URL:** <https://forum.katalon.com/t/unable-to-send-email-attached-logs/12873>\
**Category:** Bug Report\
**Tags:** bugs-report, katalon-studio\
**Created:** [August 27, 2018, 11:18pm UTC](https://forum.katalon.com/t/unable-to-send-email-attached-logs/12873 "2018-08-27T23:18:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent\_Luong](https://avatars.discourse-cdn.com/v4/letter/v/e0b2c6/32.png) [@Vincent\_Luong](https://forum.katalon.com/u/Vincent_Luong)\
**Post date:** [August 27, 2018, 11:18pm UTC](https://forum.katalon.com/t/unable-to-send-email-attached-logs/12873/1 "2018-08-27T23:18:16Z")

</div>

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](http://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](http://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

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [August 28, 2018, 1:17am UTC](https://forum.katalon.com/t/unable-to-send-email-attached-logs/12873/2 "2018-08-28T01:17:36Z")

</div>

I have ever experienced a similar incident: being unable to connect to SMTP host: [smtp.gmail.com](http://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](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.

---

<div class="post-metadata">

**Author:** ![Vincent\_Luong](https://avatars.discourse-cdn.com/v4/letter/v/e0b2c6/32.png) [@Vincent\_Luong](https://forum.katalon.com/u/Vincent_Luong)\
**Post date:** [August 28, 2018, 1:27pm UTC](https://forum.katalon.com/t/unable-to-send-email-attached-logs/12873/3 "2018-08-28T13:27:38Z")

</div>

> [kazurayam](https://forum.katalon.com/profile/4280/kazurayam) said:
> 
> I have ever experienced a similar incident: being unable to connect to SMTP host: [smtp.gmail.com](http://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:  
> [Less secure apps & your Google Account - Google Account Help](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.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [August 28, 2018, 10:03pm UTC](https://forum.katalon.com/t/unable-to-send-email-attached-logs/12873/4 "2018-08-28T22:03:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [November 2, 2019, 4:43am UTC](https://forum.katalon.com/t/unable-to-send-email-attached-logs/12873/5 "2019-11-02T04:43:29Z")

</div>

Closed on November 2, 2019, 4:43am UTC


