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

I am using amazon smtp username and password and I am facing the same issue.
javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:264)
at javax.mail.Service.connect(Service.java:134)
at AmazonSESSampleTemp.main(AmazonSESSampleTemp.java:59)
The email was not sent.
Error message: null
Anonymous
Not applicable
Author

Hi,
I am getting the same error. Has there been any update on this? 

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 local_project.mail_0_1.mail.tSendMail_1Process(mail.java:590)
at local_project.mail_0_1.mail.runJobInTOS(mail.java:4789)
at local_project.mail_0_1.mail.main(mail.java:4639)
And i am not finding these seting (settings privacy -->app and site link -->  uncheck allow app less secure) in my gmail acount.
please give me proper solution.
_AnonymousUser
Specialist III
Specialist III

I just tested this with a personal gmail account using TOS 6.2.1. It denied me access, then sent me this email. Once I removed the restriction on the "less secure app" (Talend!!), it worked.
"
Google just blocked someone from signing into your Google Account <<email address>> from an app that may put your account at risk.
Less secure app
Friday, January 20, 2017 1:05 PM (Pacific Standard Time)
Ventura, CA, USA*
Don't recognize this activity?
If you didn't recently receive an error while trying to access a Google service, like Gmail, from a non-Google application, someone may have your password.
SECURE YOUR ACCOUNT
Are you the one who tried signing in?
Google will continue to block sign-in attempts from the app you're using because it has known security problems or is out of date. You can continue to use this app by allowing access to less secure apps, but this may leave your account vulnerable.
Best,
The Google Accounts team
"
Anonymous
Not applicable
Author

Hi,

I have a problem with " Exception in component tSendMail_1
javax.mail.AuthenticationFailedException "

And i see your answer, but i didn't find the " settings privacy -->app and site link -->  uncheck allow app less secure  "

Can you help me please, and sorry for my english, I am from Madagascar

Thank you for your help

 

Anonymous
Not applicable
Author

hi erryco, 

i have a problem with tsendMail AuthentificationFaildException and i search the "settings privacy -->app and site link -->  uncheck allow app less secure " that you did. but i don't see the settings privacy.

Can you help me please?

Ravivarma_india
Contributor
Contributor

@errico Errico hu​  Hi Now your answer no more works, because basic auth is disabled by gmail and outlook, Only Oauth authentication is now allowed. Anyone answer with New solution.

Anonymous
Not applicable
Author

Hello,

For tPOP & Microsoft Basic Authentication Retirement issue mentioned in this thread:

https://community.talend.com/s/feed/0D55b00007LRyrWCAT

we do provide our customers with patch 8.0.1-R2022-08 Studio Monthly and 8.0.1-R2022-09 Studio Monthly update and official guide about setting up the authentication mode for Microsoft Exchange or OAuth:

https://help.talend.com/r/en-US/8.0/pop/registering-microsoft-azure-application-for-pop-imap

 

Community users would have to manually fix their studio. The component is open source: https://github.com/Talend/tdi-studio-se/tree/master/main/plugins/org.talend.designer.components.loca...

Best regards

Sabrina