I am trying to setup a Google Workspace gmail account in Mautic 4 Mail Send Settings, my PHP version is 7.4.
I have tried an app password and the login usual setup but did not help.
This is the error I get:
Failed to authenticate on SMTP server with username “xxxxx@xxxxxxx.es” using 3 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code “535”, with message "535-5.7.8 Username and Password not accepted
If I recall correctly at some point in time Google started using app passwords. So in order for you to connect / use Gmail you had to generate app specific password < Sign in using app passwords - Gmail Help >.
You could also set your account so that you would be able to login to account with your (user) password but I would advise against it, since you have better approach above.
This is not actually issue with Mautic (based on error message).
I would also like to kindly remind you to use support ticket template the next time you post, as its easier to read and I think more people will be interested in helping you.
Hello, thank you very much for your answer. I fixed it and it works.
Here the details just in case somebody else need it.
1.- Activate 2 step authentication for that user account
2.- Create and use app password for Mautic instead of your usual password
3.- Dont select Gmail smtp in Mautic - go to other SMTP server
4.- Use this smtp setup
smtp.gmail.com
Requires SSL: Yes
Requires Login Authentication: Yes (App password)
Port for TLS/STARTTLS: 587