Title: PHP error when backupbuddy sends mail
Last modified: May 27, 2019

---

# PHP error when backupbuddy sends mail

 *  Resolved [MikeShand](https://wordpress.org/support/users/mikeshand/)
 * (@mikeshand)
 * [7 years ago](https://wordpress.org/support/topic/php-error-when-backupbuddy-sends-mail/)
 * Since updating to the latest version 1.4.2 of WP mail SMTP 2 weeks ago, I am 
   getting errors from backupbuddy when it attempts to send one particular email
   indicating the completion of a backup tranfer to to google drive. All other emails
   sent by backup buddy, and anything else, including the WP mail SMTP test email
   are working fine. The error I get is…
 * Fatal PHP error encountered:
    type => 1 message => Uncaught Error: Call to undefined
   method Google_Client::setIncludeGrantedScopes() in /home2/mike/public_html/wp-
   content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php:92 Stack trace: #0 /
   home2/mike/public_html/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.
   php(53): WPMailSMTP\Providers\Gmail\Auth->get_client() #1 /home2/mike/public_html/
   wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php(79): WPMailSMTP\
   Providers\Gmail\Auth->__construct() #2 /home2/mike/public_html/wp-content/plugins/
   wp-mail-smtp/src/MailCatcher.php(105): WPMailSMTP\Providers\Gmail\Mailer->send()#
   3 /home2/mike/public_html/wp-includes/pluggable.php(481): WPMailSMTP\MailCatcher-
   >send() #4 /home2/mike/public_html/wp-content/plugins/backupbuddy/classes/core.
   php(619): wp_mail(Array, ‘BackupBuddy Fil…’, ‘<?php\n/**\n * Em…’, Array) #5 /
   home2/mike/public_html/wp-content/plugins/backupbuddy/destinations/bootstrap.
   php(665): backupbuddy_core::mail_notify_scheduled(”, ‘destinationComp…’, ‘Destination
   sen…’, Array)
 * NB I am still running wordpress 4.9.10
    #6 /h file => /home2/mike/public_html/
   wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php line => 92 —

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [7 years ago](https://wordpress.org/support/topic/php-error-when-backupbuddy-sends-mail/#post-11583910)
 * Hi MikeShand,
 * The issue seems to be due to the older version of the Google API Services library
   included by the backupbuddy plugin. WP Mail SMTP includes the latest version 
   of this library. In this case, when backupbuddy tries to send email, it loads
   the library included by WP Mail SMTP and the method which it is trying to call
   doesnot exist in the latest version.
 * To fix this issue, you will need to contact the backupbuddy plugin support and
   ask them to update the version of the Google API Services library.
 * I hope this helps!
 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [7 years ago](https://wordpress.org/support/topic/php-error-when-backupbuddy-sends-mail/#post-11614853)
 * Hi MikeShand,
 * We haven’t heard from you in about a week, so I’m going to go ahead and mark 
   this ticket resolved. If you still have questions, though, please feel welcome
   to continue the conversation.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP error when backupbuddy sends mail’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/php-error-when-backupbuddy-sends-mail/#post-11614853)
 * Status: resolved