PHPMailer\PHPMailer

PHPMailer::setOAuthpublicWP 1.0

Set an OAuthTokenProvider instance.

Method of the class: PHPMailer{}

No Hooks.

Returns

null. Nothing (null).

Usage

$PHPMailer = new PHPMailer();
$PHPMailer->setOAuth( $oauth );
$oauth(OAuthTokenProvider) (required)
.

PHPMailer::setOAuth() code WP 6.8.1

public function setOAuth(OAuthTokenProvider $oauth)
{
    $this->oauth = $oauth;
}