Unable to email report. Sending the email to the following server failed : smtp.gmail.com:465

Hi, i executed script using command prompt and configured email as well.However unable send the report to email. I tried using UI Katalon itself and it works. Anyone facing this issue as well?Please help on this matter.Thank You.

Reason: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:465