PHPMailer\PHPMailer

PHPMailer::setOAuth()publicWP 1.0

Set an OAuthTokenProvider instance.

Method of the class: PHPMailer{}

No Hooks.

Return

null. Nothing (null).

Usage

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

PHPMailer::setOAuth() code WP 6.5.2

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