Sending email failed

Highlighted
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
Six Stars

Re: Sending email failed

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


All Replies
Twelve 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!

Six Stars

Re: Sending email failed

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

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch