updated plugin WP Mail SMTP version 2.4.0

This commit is contained in:
2020-09-25 14:44:17 +00:00
committed by Gitium
parent 4f3d745449
commit 3053837189
673 changed files with 31869 additions and 65613 deletions

View File

@ -5,6 +5,8 @@ namespace WPMailSMTP\Providers\Gmail;
use WPMailSMTP\Debug;
use WPMailSMTP\MailCatcherInterface;
use WPMailSMTP\Providers\MailerAbstract;
use WPMailSMTP\Vendor\Google_Service_Gmail;
use WPMailSMTP\Vendor\Google_Service_Gmail_Message;
/**
* Class Mailer.
@ -28,7 +30,7 @@ class Mailer extends MailerAbstract {
*
* @since 1.0.0
*
* @var \Google_Service_Gmail_Message
* @var Google_Service_Gmail_Message
*/
protected $message;
@ -76,7 +78,7 @@ class Mailer extends MailerAbstract {
require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php';
$auth = new Auth();
$message = new \Google_Service_Gmail_Message();
$message = new Google_Service_Gmail_Message();
// Set the authorized Gmail email address as the "from email" if the set email is not on the list of aliases.
$possible_from_emails = $auth->get_user_possible_send_from_addresses();
@ -103,7 +105,7 @@ class Mailer extends MailerAbstract {
$message->setRaw( $base64 );
$service = new \Google_Service_Gmail( $auth->get_client() );
$service = new Google_Service_Gmail( $auth->get_client() );
$response = $service->users_messages->send( 'me', $message );
$this->process_response( $response );
@ -123,7 +125,7 @@ class Mailer extends MailerAbstract {
* @since 1.0.0
* @since 1.5.0 Added action "wp_mail_smtp_providers_gmail_mailer_process_response" with $response.
*
* @param \Google_Service_Gmail_Message $response Instance of Gmail response.
* @param Google_Service_Gmail_Message $response Instance of Gmail response.
*/
protected function process_response( $response ) {