Sending email failed

Six Stars

Sending email failed

mail.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

Tags (1)

Accepted Solutions
Highlighted
Six Stars

Re: Sending email failed

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

View solution in original post


All Replies
Highlighted
Thirteen Stars

Re: Sending email failed

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?

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Highlighted
Six Stars

Re: Sending email failed

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

View solution in original post

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog