Have you turned off 2-factor authentication and enabled less secure apps in your Google Account?
https://support.google.com/a/answer/6260879#zippy=%2Cuse-alternatives-to-less-secure-apps
https://support.google.com/a/answer/176600?hl=en#zippy=%2Cuse-the-gmail-smtp-server
Hope this helps.
Hi Abrar,
Have a look at this Question Mendix Forum - Questions
Most probably you will be having jar files from Email Template module, you have to manually remove them.
Thanks