Replies: 1
I’ve installed the plugin and followed the documentation for Gmail. Everything went smoothly as the docs written… until the part where I need to click “Allow plugin to send emails using your Google account”.
I always get Error400 during this process, so I decided to check the button’s href and found out that the client_id parameter is actually missing!
https://accounts.google.com/o/oauth2/auth?response_type=code&redirect_uri=http%3A%2F%2Fexample.com%2Fwp-admin%2Foptions-general.php%3Fpage%3Dwp-mail-smtp%26tab%3Dauth&client_id=&scope=https%3A%2F%2Fmail.google.com%2F&access_type=offline&approval_prompt=force&include_granted_scopes=true
(I’ve changed my domain name with a dummy one here just in case)
So I tried cheating my way by editing the href and inserted my client_id and then clicking the button like normal.
Get warned for unverified-whatever which I choose to ignore. And then presented with the ultimate decision of “Cancel” vs “Allow”. It was a tough decision.
After clicking “Allow”, I got redirected to the plugin’s settings page. But no Success Message (as described in the docs) were witnessed at this point, and the “Allow plugin to send emails using your Google account” doesn’t exist… nor anything else beyond it (save button, ‘please support us’ box, etc).
Similar situation also occurred in “Email Test” tab. Only 2 rows get rendered in this page: “Send To” and “HTML”, which is definitely not enough since the “Send Email” button is absent.
—
Error message “Fatal error: Call to undefined method Google_Client::fetchAccessTokenWithAuthCode() in /home/exampledotcom/public_html/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php on line 102” appeared when I used debug mode, not sure how to fix it.
—
The “Misc” tab worked as usual though…
This problem persist even after removing and reinstalling the plugin… unless I checked the “…remove ALL WP Mail SMTP data upon plugin deletion…” option.
Tried redoing it 3 times (all with similar results) before I gave up and decided to ask for support here.