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!
2 REPLIES
Moderator

Re: javax.mail.AuthenticationFailedException in tSendEmail

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

Re: javax.mail.AuthenticationFailedException in tSendEmail

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