...
For instructions on configuring an SMTP server on Jira, please see this Atlassian documentation on:
Configuring an SMTP mail server.
Sending a test email from Jira
Test that you can send email from Jira by sending a test message from Jira. See this Atlassian documentation for further details:
How to send a Test Email in JIRA
Troubleshooting a Gmail account
...
Enable "less secure" apps. For more information, see this Google documentation on Less secure apps & your Google Account
Unlock your Gmail account:
While you may be able to access your Gmail account, chances are it has been locked for use by third-party apps (in this case, Jira) due to excessive logins. See this Google documentation on unlocking a Gmail account: DisplayUnlockCaptcha
sendEmail() troubleshooting
...
If these troubleshooting steps do not work, please create a support request on our Power Scripts Service Desk Portal.
Please answer the following questions:
...