Mail sending error with gmail smtp

Hi,
I am getting a send_error when trying to send email through gmail.

I have followed this guide and set as follows:

email address to send from: <mygmailaccount>@gmail.com
email server: smtp.gmail.com
email server port: 587
email server username: <mygmailaccount>@gmail.com
email server password: <my_app_password>
Additional properties: mail.smtp.starttls.enable=true
Discard sucess statuses?: No

When I trigger an email send (password reset on one of the users) I got this error:

AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials y16-20020a2e9790000000b002b6d465583csm2455320lji.126 - gsmtp

What could be the problem? Any buried settings in config files? Permissions? Something to set up on my gmail account?

What am I missing?

Hi @GarbatyGrabarz,

Please read Sign in with app passwords - Google Account Help. It is now required that you create an application password to be used with your email instead of your actual password.

Hope it helps,
Alex

I did that already (that’s why <my_app_password>).
When asked for selecting type of app I tried with “Mail” and “Other”.