Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
shalinim1
Contributor III
Contributor III

Exception in component tSendMail_1 (mail) javax.mail.AuthenticationFailedException

Hi,

I have been trying to send an email using outlook mail account. My user name and password provided was correct. And I have provided smtp host as

smtp.office365.com and port number as 587 with starttls support. Yet I could not send an email and throwing Exception as,

[statistics] connecting to socket on port 3378

[statistics] connected

Exception in component tSendMail_1 (mail)

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 test.mail_0_1.mail.tSendMail_1Process(mail.java:457)

 at test.mail_0_1.mail.runJobInTOS(mail.java:1139)

 at test.mail_0_1.mail.main(mail.java:989)

[statistics] disconnected

While connecting to gmail account with smtp host as smtp.gmail.com and port number as 587 was working perfectly.

Could anyone please help me in this issue? Or please provide me with smtp host and password to send mail irrespective of outlook or gmail. since it a company mail id I cant change any settings in my outlook.

17 Replies
shalinim1
Contributor III
Contributor III
Author

No, still Im facing the same issue. Both username and password provided was correct

David_Beaty
Specialist
Specialist

Hi,

 

I remember I had this problem a while back - and got a patch from Talend which resolved the issue (this was when run from Talend Runtime) - can't remember what the Patch number was though - sorry.

 

Thanks

carosim
Contributor
Contributor

Hello,

 

Has this issue been resolved? I have the same.

 

Yet username, password, port etc is ok. it works in powershell

carosim
Contributor
Contributor

For me the problem was due to the version of java.

 

After update, I have an another problem, but it is corrected with this issus

https://community.talend.com/s/article/Issue-with-tSendMail-and-TLS-version-ElVmA

Anonymous
Not applicable

Hello @carosim

We need more information to address your issue.

Could you please clarify in which Talend version/edition you are?

We will appreciate it a lot if you could upload your tsendmail component setting screenshots here.

Please mask your sensitive data.

Best regards

Sabrina

 

Anonymous
Not applicable

Hello,

Great it works for you and feel free to let us know if there is any further help we can give.

Best regards

Sabrina

Venkat6
Contributor II
Contributor II

hi team,

talend version: 7.1.1

I followed the above mentioned steps and published the job to TMC it worked! It's not working for other project where they are using the Airflow to trigger the talend job.

0695b00000RjYJFAA3.pngI could see the the pom.xml has the jvm parameters but still it's failing with below error:

[ERROR]: hida_master_unspsc_reclassify.job_taxonomy_investigation_0_1.Job_Taxonomy_Investigation - tSendMail_4 - javax.mail.AuthenticationFailedException: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit https://aka.ms/smtp_auth_tls. [CO2PR04CA0087.namprd04.prod.outlook.com]

[ERROR]: Job_Taxonomy_Investigation - tSendMail_4 - javax.mail.AuthenticationFailedException: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit https://aka.ms/smtp_auth_tls. [CO2PR04CA0087.namprd04.prod.outlook.com]

 

Could you please help me here to resolve this.

 

Is there change needs to be done at docker image file: Do i need to add the "-Dmail.smtp.ssl.protocols=TLSv1.2" parameter in docker file as well??

0695b00000RjYJjAAN.png 

Regards,

Venkat

Anonymous
Not applicable

Hello,

Did you add the property -Dmail.smtp.ssl.protocols=TLSv1.2. to a job as well?

Please have a look at this screenshot.0695b00000Rjf1rAAB.jpgBest regards

Sabrina