PHPMailer\PHPMailer

PHPMailer::setSMTPInstance()publicWP 1.0

Provide an instance to use for SMTP operations.

Method of the class: PHPMailer{}

No Hooks.

Return

SMTP.

Usage

$PHPMailer = new PHPMailer();
$PHPMailer->setSMTPInstance( $smtp );
$smtp(SMTP) (required)
-

PHPMailer::setSMTPInstance() code WP 6.5.2

public function setSMTPInstance(SMTP $smtp)
{
    $this->smtp = $smtp;

    return $this->smtp;
}