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
        at javax.mail.Service.connect(
        at javax.mail.Service.connect(
        at javax.mail.Service.connect(
        at javax.mail.Transport.send0(
        at javax.mail.Transport.send(
(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!

Re: javax.mail.AuthenticationFailedException in tSendEmail

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

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.