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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[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.
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

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

View solution in original post

11 Replies
Anonymous
Not applicable
Author

Hi, all!
Still no ideas? Am I the only one to have problems with this?
I tried with my Gmail account by following this : https://community.talend.com/t5/Archive/tConvertType-erros-on-null-values/td-p/172249 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
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

What's wrong with my question?
Best,
Damien
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

What do you mean by allowed java ..I'm having the same issue..
TLS checked
SSL unchecked
SMTP host ... smtp.gmail.com
Anonymous
Not applicable
Author

Hello,

Would you mind posting your tSendMail component setting screenshot on forum? Please mask your sensitive data.

Best regards

Sabrina