Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Sending email failed

0683p000009M6EW.png

I am not able to send email using smpt mailgun or gmail. I am getting the same error as following. Please advice.

Exception in component tSendMail_1 (TestMail)
javax.mail.MessagingException: Could not connect to SMTP host: smtp.mailgun.org, port: 587;
nested exception is:
java.net.ConnectException: Connection refused: 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 centaur.testmail_0_1.TestMail.tSendMail_1Process(TestMail.java:594)
at centaur.testmail_0_1.TestMail.runJobInTOS(TestMail.java:952)
at centaur.testmail_0_1.TestMail.main(TestMail.java:726)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
... 9 more

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I am able to send email now. The antivirus scanner was blocking the mail connection.

View solution in original post

2 Replies
fdenis
Master
Master

Could not connect to SMTP host: smtp.mailgun.org, port: 587;

you may check your connection.
did you need ssl to connect your server?
did you ask to the admin?
Anonymous
Not applicable
Author

I am able to send email now. The antivirus scanner was blocking the mail connection.