PHPMailer\PHPMailer
PHPMailer::setSMTPInstance()
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() PHPMailer::setSMTPInstance code WP 6.4.1
public function setSMTPInstance(SMTP $smtp) { $this->smtp = $smtp; return $this->smtp; }