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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] tSendMail AuthenticationFailedException

When using the tSendMail component I get an error: AuthenticationFailedException
This is while using 4 different SMTP options:
MailGun
Mandrill
Outlook.com
Google Apps (gmail)
I have followed all the instructions that I can find in these forums and followed the settings demonstrated to the letter but it has never worked properly.
I am able to telnet to these from my machine using the same SMTP/ports/passwords and send mail and send email using other code (.NET code, for instance).
I have Java 1.7 and Open Studio 5.4 for Data Integration.
What am I missing?
Additional error message details below:
Exception in component tSendMail_1
javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:306)
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)...
Labels (3)
36 Replies
_AnonymousUser
Specialist III
Specialist III

Exception in component tSendMail_1
javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:306)
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 naveen.leaverequest_0_3.Leaverequest.tSendMail_1Process(Leaverequest.java:1333)
at naveen.leaverequest_0_3.Leaverequest.tJava_3Process(Leaverequest.java:1077)
at naveen.leaverequest_0_3.Leaverequest.tJava_6Process(Leaverequest.java:932)
at naveen.leaverequest_0_3.Leaverequest.runJobInTOS(Leaverequest.java:4485)
at naveen.leaverequest_0_3.Leaverequest.main(Leaverequest.java:4296)

 i am facing same problem with securemail
"secure.emailsrvr.com"
port 25
_AnonymousUser
Specialist III
Specialist III

Exception in component tSendMail_1
javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:306)
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 naveen.leaverequest_0_3.Leaverequest.tSendMail_1Process(Leaverequest.java:1333)
at naveen.leaverequest_0_3.Leaverequest.tJava_3Process(Leaverequest.java:1077)
at naveen.leaverequest_0_3.Leaverequest.tJava_6Process(Leaverequest.java:932)
at naveen.leaverequest_0_3.Leaverequest.runJobInTOS(Leaverequest.java:4485)
at naveen.leaverequest_0_3.Leaverequest.main(Leaverequest.java:4296)

 i am facing same problem with securemail
"secure.emailsrvr.com"
port 25

Can any one help me out with this.
Anonymous
Not applicable
Author

Hi NaveenMRNK,
Usually, SMTPS, for sending mail with SSL encryption, is on port 465.?gmail...)
Could you please try to use port 465 to see if it works?
If you are using office365, please try these parameters;
SMTP setting
Server name: smtp.office365.com
Port: 587
Encryption method: TLS


Your tSendMail component setting screenshot will be helpful for us to address your issue.
Best regards
Sabrina
Anonymous
Not applicable
Author

As well as correctly setting the port number, it is also very important to correctly specify "SSL Support" / "STARTTLS Support"
You're Email provider will tell you what all of the correct settings are.
Anonymous
Not applicable
Author

Dear All,
I want to post data from a CSV file to a rest service as follows:- 
1. I read data from tFileInputDelimited
2. parse data to write a json using tWriteJSONField
3. send the json to tRestClient
now problem is:- I need to authenticate the request using openAM before i could post data in service mentioned in tRestClient. Kindly assist
Anonymous
Not applicable
Author

Hi harsimran_cheema,
For now, the authentication type is basic HTTP, HTTP digest, SAML Token(ESB runtime only),OAuth2 Bearer in tRestClient without openAM.
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi sabrina i have do all you sad, but nothing. i have this problem:
connected
Exception in component tSendMail_1
javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:306)
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 euronics.tsendmail_0_1.tsendmail.tSendMail_1Process(tsendmail.java:462)
at euronics.tsendmail_0_1.tsendmail.runJobInTOS(tsendmail.java:720)
at euronics.tsendmail_0_1.tsendmail.main(tsendmail.java:577)
disconnected
Job tsendmail ended at 12:32 05/02/2016.

SMTP host: "smtp,gmail.com"
Port SMTP: 465
SSL Support: checked
username "my email"
password "email-password"
in my opinion the problem is inside the password but i don't know
i read all post to tsendmail in google but nothing
my jdk is jdk1.8.0_45
and my talend is 6.1

sorry for my bad english 
thanks a lot
0683p000009MBej.png
_AnonymousUser
Specialist III
Specialist III

Do we have any updates on this issues? I am trying to connect to the component and I have the same issue:
Starting job test_email at 07:25 22/02/2016.
connecting to socket on port 3638
connected
Exception in component tSendMail_1
javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:306)
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 dhh_bi_v10.test_email_0_1.test_email.tSendMail_1Process(test_email.java:1037)
at dhh_bi_v10.test_email_0_1.test_email.runJobInTOS(test_email.java:1291)
at dhh_bi_v10.test_email_0_1.test_email.main(test_email.java:1137)
disconnected
Job test_email ended at 07:25 22/02/2016.
Anonymous
Not applicable
Author

Hi,
Are you email account and password totally correct? Can you use your authentication (username and password) to login your gmail without using Talend tool? Is your network Ok with you?
We cannot repro this issue on our side.
Best regards
Sabrina
Anonymous
Not applicable
Author

i have found a solution the problem is in the mail secure