Moodle 3.10 gmail SMTP not working

Moodle 3.10 gmail SMTP not working

by Varun Aggarwal -
Number of replies: 4

have added attached config in my SMTP settings, but while trying to send email for user registration it always shows


Note: have enabled less secure app login on gmail as well

Average of ratings: -
In reply to Varun Aggarwal

Re: Moodle 3.10 gmail SMTP not working

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
I personally don't use Gmail, but there is this page in the MoodleDocs https://docs.moodle.org/310/en/Email_setup_gmail.
In reply to Visvanath Ratnaweera

Re: Moodle 3.10 gmail SMTP not working

by Varun Aggarwal -

thanks for the reply Visvanath, had followed the same link but still not working sad

had tried tls too.

In reply to Varun Aggarwal

Re: Moodle 3.10 gmail SMTP not working

by Varun Aggarwal -
Finally it worked.. Config is fine.. tried a sample test code for smtp with gmail first.. which highlighted the changes to be done in gmail. post that this worked fine.