I am currently using GMAIL less secure app method to send email from my website. Since it no longer works due to Google blocking the emails to be sent, I am now shifting to Oauth method.
I followed all the steps mentioned in the following article and was able to complete all the steps successfully except the last one. https://github.com/PHPMailer/PHPMailer/wiki/Using-Gmail-with-XOAUTH2
In the last step when I try to visit the URL and select google as the provider it just displays: [website] is currently unable to handle this request. HTTP ERROR 500
Things I tried:
- Deactivating all plugins
- Increasing PHP memory limit
My website generally is not facing Error 500 problem. It displays this only while accessing the URL where the get_oauth_token.php resides on the website (as directed to do in the article)