Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Email Configuration Issue #4593

Abhijith ·

Hi Team,

we are trying to send Email from QB server to the receiver (dummy email: abc123@gmail.com) and the job is running on the agent server.

Email setting configuration and receivers details are mentioned as in the attachment.

image (9).png image (10).png

It is not working as expected, can you please suggest if any configuration update we required?

  • replies 5
  • views 55
  • stars 0
robinshen ADMIN ·

Please disable option "Use SMTP over SSL" and enable option "Enable Start TLS" to see if it works.

Debarati1996 ·

Hi@robinshen ,

Thank you for your response!!

As suggested above, we disabled option "Use SMTP over SSL" and enabled option "Enable Start TLS".

Getting error as below,

Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : mailhost.gmail.com:587
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1410)
at org.apache.commons.mail.Email.send(Email.java:1437)
at com.pmease.quickbuild.util.MiscUtils.sendMail(MiscUtils.java:129)
... 17 more
Caused by: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: mailhost.gmail.com, 587; timeout 120000;
nested exception is:
java.net.UnknownHostException: mailhost.gmail.com
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2209)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
at javax.mail.Service.connect(Service.java:366)
at javax.mail.Service.connect(Service.java:246)
at javax.mail.Service.connect(Service.java:195)
at javax.mail.Transport.send0(Transport.java:254)
at javax.mail.Transport.send(Transport.java:124)
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1400)
... 19 more
Caused by: java.net.UnknownHostException: mailhost.gmail.com
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:357)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:238)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2175)

Can you please help here.

Thanks,
Debarati Mukherjee

steveluo ADMIN ·

I think the mail host should be smtp.gmail.com, not mailhost.gmail.com.

Debarati1996 ·

Hi@steveluo ,
We tried with smtp.gmail.com as well. It is throwing same error message.

robinshen ADMIN ·