One Star

[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)...
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] tSendMail AuthenticationFailedException

the solution is in the email setting , in you use gmail, you 
go to the settings privacy -->app and site link -->  uncheck allow app less secure 
and you can send email.
sabrina can you help me in other my question regards rounding number in the tmap?
thanks 
32 REPLIES
Moderator

Re: [resolved] tSendMail AuthenticationFailedException

Hi,
Your configuration is wrong, check the parameters (smtp host, port,...)
I have a testing in Talend Open Studio for Data Integration 5.4.0, everything is OK with me.
See my screenshots
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] tSendMail AuthenticationFailedException

I have the same problem. I didn't use Talend for some time and then mail worked fine. Now with exact same settings I can not send any mail. I am trying for days with my exchange and gmail servers and nothing. it's so frustrating! Is there any general issue? All working fine with .NET applications. Smiley Sad
Moderator

Re: [resolved] tSendMail AuthenticationFailedException

Hi,
I have the same problem. I didn't use Talend for some time and then mail worked fine. Now with exact same settings I can not send any mail.

Did the tsendmail work successfully for you before? Did you make some change on it? More info about current situation will be preferred.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] tSendMail AuthenticationFailedException

hi same issue i am facing plz provide proper solution 
Moderator

Re: [resolved] tSendMail AuthenticationFailedException

Hi akshay13jain@gmail.com,
Could you please give us more description about your issue? Can you use gmail or outlook to send your email successfully?

Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [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
I have Java 1.7 and Open Studio 5.6 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)...
One Star

Re: [resolved] tSendMail AuthenticationFailedException

Starting job tsendmail_demo at 12:19 07/07/2015.
connecting to socket on port 3736
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 training.tsendmail_demo_0_1.tsendmail_demo.tSendMail_1Process(tsendmail_demo.java:734)
at training.tsendmail_demo_0_1.tsendmail_demo.tJava_1Process(tsendmail_demo.java:496)
at training.tsendmail_demo_0_1.tsendmail_demo.runJobInTOS(tsendmail_demo.java:1037)
at training.tsendmail_demo_0_1.tsendmail_demo.main(tsendmail_demo.java:849)
disconnected
Job tsendmail_demo ended at 12:19 07/07/2015.
Moderator

Re: [resolved] tSendMail AuthenticationFailedException

Hi sureshnamburi,
Your network is OK with you?
Would you mind uploading your tSendMail component setting screenshot into forum so that we can address your issue quickly.

Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] tSendMail AuthenticationFailedException

Hi 
please help me .I got a below error 
Exception in component tSendMail_1
javax.mail.MessagingException: Exception reading response;
  nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
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 local_project.shell_script_0_1.shell_script.tSendMail_1Process(shell_script.java:748)
at local_project.shell_script_0_1.shell_script.tJava_1Process(shell_script.java:510)
at local_project.shell_script_0_1.shell_script.runJobInTOS(shell_script.java:1070)
at local_project.shell_script_0_1.shell_script.main(shell_script.java:865)
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(Unknown Source)
at sun.security.ssl.InputRecord.read(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
at sun.security.ssl.AppInputStream.read(Unknown Source)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
... 11 more
One Star

Re: [resolved] tSendMail AuthenticationFailedException

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
One Star

Re: [resolved] tSendMail AuthenticationFailedException

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

Re: [resolved] tSendMail AuthenticationFailedException

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
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: [resolved] tSendMail AuthenticationFailedException

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.

Re: [resolved] tSendMail AuthenticationFailedException

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
Moderator

Re: [resolved] tSendMail AuthenticationFailedException

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
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] tSendMail AuthenticationFailedException

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
One Star

Re: [resolved] tSendMail AuthenticationFailedException

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

Re: [resolved] tSendMail AuthenticationFailedException

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
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] tSendMail AuthenticationFailedException

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

Re: [resolved] tSendMail AuthenticationFailedException

Hi erryco,
Would you mind sharing your solution with us?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] tSendMail AuthenticationFailedException

the solution is in the email setting , in you use gmail, you 
go to the settings privacy -->app and site link -->  uncheck allow app less secure 
and you can send email.
sabrina can you help me in other my question regards rounding number in the tmap?
thanks 
Moderator

Re: [resolved] tSendMail AuthenticationFailedException

Hi erryco,
Thanks for sharing your solution with us. Are you referring to the forum:https://www.talendforge.org/forum/viewtopic.php?id=48290.
Here is a response for your issue. Could you please have a look at it?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] tSendMail AuthenticationFailedException

Hi,
Off the topic a bit, but my search for Mandrill with Talend lands me in this thread. Just wondering if there is any doc regarding how to setup/use tSendMail with Mandrill?
Thx, 
Moderator

Re: [resolved] tSendMail AuthenticationFailedException

Hi clo-talend,
So far, there is no doc regarding how to setup/use tSendMail with Mandrill.
Here is component reference about:TalendHelpCenter:tSendMail
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] tSendMail AuthenticationFailedException

I am getting the same error as nasia. Has there been any update on this? 
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)
I am using office365 with these stmp settings:
Server name: smtp.office365.com
Port: 587
Encryption method: TLS
Moderator

Re: [resolved] tSendMail AuthenticationFailedException

Hi rsimon1,
Are your username and password correct for you? Can you successfully login your office365 with your authentication? Is your network Ok with you?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] tSendMail AuthenticationFailedException

Yes. We use this for another process that has been running daily (through code).
Moderator

Re: [resolved] tSendMail AuthenticationFailedException

 
Hi rsimon1,
On which build version you got this issue? What's your JDK? How about your password? any backslash?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] tSendMail AuthenticationFailedException

Build version - V6.1.1
JDK - 1.8.0_73
My password does not have any backslashes.