bool (false)even though you entered all the information’s correctly. Lets see how to fix this. Gmail users only.
Click on your Gmail account profile pic and click the ‘My Account’
Once you are in the My Account page, Click the ‘Apps with account access‘.
Turn on ‘Allow less secure apps: ON.’
After you turn on the option, you will get a mail from Google. Don’t worry.
Now go to your WP-mail-SMTP settings and enter your email and click ‘Send Test’
You should get
bool (true) as a result.