I attempted to setup gmail on latest Dolibarr installation and,
I have enable less secure app on my Google Account.
I also enable 2-step authentication but I did not receive any email linked to Dolibarr setup.
This is the error I get:
“Error [120]: Ran into problems sending Mail. Response: 534 5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor q8sm2243363otc.53 - gsmtp Error [130]: Invalid Authentication Credentials.”
If the 2-steps authentication is enabled, this parameter is always disabled. In such a case, you must create a dedicated second password for your account. This can be done on: https://myaccount.google.com/security, menu “Application password”. Create a dedicated password. You must then use it instead of your standard Gmail password into setup (the login does not change).