Moodle 4.2 - Outgoing Email Configuration with Gmail SMTP : Test outgoing mail configuration Your site couldn't communicate with your mail server. Please check your outgoing mail configuration. Solved.
Moodle 4.2 - Outgoing Email Configuration with gmail SMTP - Test Filed Error : Test outgoing mail configuration Your site couldn't communicate with your mail server. Please check your outgoing mail configuration. Solved. To solve the issue, login to gmail account used in the configuration and turn ON the 'Allow less secure apps' feature under Security. Not test the outgoing mail again. It should work.