One Star

[resolved] Error on tSendMail

Hi!
I'm new in TOS and I'm trying to do some easy job at the beginning. I used to find all the solutions
of my issues in this forum but now I'm stuck on this:
I'm currently working on a job sending an email with the tSendMail component. I filled this:
To: "name_to@domain_to.com"
From: "name_from@domain_from.com"
Cc: ""
Bcc: ""
Subject: "Test message"
Message: "This is a test message!"
Die if attachment file doesn't exist: Unchecked
Attachments: Blank
Other headers: Blank
SMTP host: "130.98.XXX.XXX"
SMTP port: 25
SSL Support: Unchecked
STARTTLS Support: Unchecked
Need authentication?: Unchecked
But I get this error:
Exception in component tSendMail_1
javax.mail.MessagingException: Could not connect to SMTP host: 130.98.XXX.XXX, port: 25;
nested exception is:
java.net.SocketException: Software caused connection abort: 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 dam_01.email_0_1.eMail.tSendMail_1Process(eMail.java:261)
at dam_01.email_0_1.eMail.runJobInTOS(eMail.java:401)
at dam_01.email_0_1.eMail.main(eMail.java:309)
Caused by: java.net.SocketException: Software caused connection abort: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(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

Like I'm using a Domino (Lotus Notes) SMTP server (IP address: 130.98.XXX.XXX) I was thinking about getting in trouble with this, so I installed
Mozilla Thunderbird and but this same settings in order to send an email and it works correctly.
So I got the right settings but I can't send an email by tSendMail.
Any ideas?

I'm using TOS 3.0.3 in a Java project.
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] Error on tSendMail

I finally find the solution.
For people who get the same problem:
You have to allowed "JAVA" and not "Talend" to access to your mail into your firewall.
That was so easy...
Thanks for all.
Damien
7 REPLIES
One Star

Re: [resolved] Error on tSendMail

Hi, all!
Still no ideas? Am I the only one to have problems with this?
I tried with my Gmail account by following this : http://www.talendforge.org/forum/viewtopic.php?pid=9278#p9278 and the Gmail mail help in order to send an email using other application, but without any good results! I still have the same error.
Thanks for your help!
Best regards.
Damien
One Star

Re: [resolved] Error on tSendMail

Hello...
Did I done something wrong? Did I overpassed a Forum rules?
Let me know if I posted it on a wrong place?
Hope you'll help me!
Regards
Damien
Community Manager

Re: [resolved] Error on tSendMail

Hello Damien
You must check 'ssl support' option and use port: 465 if you are using Gmail mail.
Aslo, can you try the smtp host: "smtp.gmail.com" replace ip address?
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Error on tSendMail

Hello Shong,
Thanks for answering my question.
My goal is to use my Lotus account (connecting to the Domino server) and not my Gmail account. I even tried with this but still the same error!!!!
I'm wandering why Thunderbird can connect to the Domino server and not Talend. Because I'm using the same connection settings.
Regards,
Damien
One Star

Re: [resolved] Error on tSendMail

What's wrong with my question?
Best,
Damien
Community Manager

Re: [resolved] Error on tSendMail

Hello Damien
At the moment, I don't have a environment as yours, so I can't test and find the problem. Can you export your job and send it to me via email?
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Error on tSendMail

I finally find the solution.
For people who get the same problem:
You have to allowed "JAVA" and not "Talend" to access to your mail into your firewall.
That was so easy...
Thanks for all.
Damien