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

javax.mail.AuthenticationFailedException in tSendEmail

Hey all
I get a strange error with email sending - the job works on my local PC, but when I upload it to server and run the job as an sh script, it gives me the following error:
Exception in component tSendMail_2
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)
(Rest of error removed due to white label client names).
Wondering if anyone had any idea why this might be?
Its a gmail connection, I have allowed access for less secure apps, but its still not working on the server.
Any help appreciated!
Labels (4)
3 Replies
Anonymous
Not applicable
Author

Hi,
Is your network OK with you on server? Did you install JDK on server? Can you execute your job script successfully on local machine?

Best regards
Sabrina
Anonymous
Not applicable
Author

Sabrina
Thank you for responding.
I will follow up with the server administrator to check JDK is on the server, I normally manually run the job from the console on my PC, so I will check that I can run it as a script on my local host also.
I will update you with my findings.
Thanks 
David
Bhavya18
Contributor
Contributor

hey, I am receiving the same error even though I have changed my gmail account settings and removed the double authentication process.

The error is :- Exception in component tSendMail_1 (issue1)

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 dataissueshandling.issue1_0_1.issue1.tFileInputExcel_1Process(issue1.java:2321)

at dataissueshandling.issue1_0_1.issue1.runJobInTOS(issue1.java:2748)

at dataissueshandling.issue1_0_1.issue1.main(issue1.java:2597)

[statistics] disconnected

MY smtp settings are shared in the attached screenshot.0693p000009SUKKAA4.png0693p000009SUKFAA4.png