Unable to send email from activity

Hi All,

I have requirement to send email from the activity, for that I have created email account (test connectivity is successful), now I am calling SendEmailNotification from my activity, I am passing all the required parameter to activity.

While executing activity I am getting error:

Unable to connect email client due to : 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 44sm11430557qtt.13 - gsmtp

Can some one please help me?

I am using pega 8.1 version


Keep up to date on this post and subscribe to comments

October 15, 2019 - 6:19am


Is the test connectivity fully working on your email account?

October 15, 2019 - 6:23am

Hi Tushar,

Google now doesn’t accept login from less secure apps. So you need to go to scroll to the bottom and turn ON “Allow less secure apps: ON”.
If it was enabled, change to disabled and than back to enable.
For more information check out the below link:

Hope it helps.

October 16, 2019 - 12:55am


Please check the password and the username that you have passes as  parameters to the SendEmailNotification activity. The password should be the 16 digit app password that you generate and specify in the Email account configuration.