PHP Error when trying to send email
-
Hi there,
We are experiencing this error:
NOTICE: PHP message: PHP Fatal error: Uncaught Error: Call to undefined method Google_Client::setIncludeGrantedScopes() in /var/www/html/<my-site-here>/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php:88We are using the last (2.1.1) version of your plugin.
I tried recreating the credentials on Google Developer Platform and set them up in the plugin settings, but the issue remains. The settings page shows this at the bottom (authorization)
Fatal error: Uncaught Error: Call to undefined method Google_Client::setIncludeGrantedScopes() in /var/www/html/<my-site-here>/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php:88 Stack trace: #0 /var/www/html/<my-site-here>/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php(37): WPMailSMTP\Providers\Gmail\Auth->get_client() #1 /var/www/html/<my-site-here>/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Options.php(151): WPMailSMTP\Providers\Gmail\Auth->__construct() #2 /var/www/html/<my-site-here>/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Options.php(134): WPMailSMTP\Providers\Gmail\Options->display_auth_setting_action() #3 /var/www/html/<my-site-here>/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/SettingsTab.php(288): WPMailSMTP\Providers\Gmail\Options->display_options() #4 /var/www/html/<my-site-here>/wp-content/plugins/wp-mail-smtp/src/Admin/Area.php(614): WPMailSMTP\Admin\Pages\SettingsTab->display() #5 /var/www/html/<my-site-here>/wp-content/plu in /var/www/html/<my-site-here>/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php on line 88
The topic ‘PHP Error when trying to send email’ is closed to new replies.