PHPMailer\PHPMailer

PHPMailer::setOAuth()publicWP 1.0

Set an OAuthTokenProvider instance.

{} It's a method of the class: PHPMailer{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of PHPMailer::setOAuth() WP 6.0

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