PHPMailer\PHPMailer
PHPMailer::setSMTPInstance
Provide an instance to use for SMTP operations.
Method of the class: PHPMailer{}
No Hooks.
Returns
SMTP.
Usage
$PHPMailer = new PHPMailer(); $PHPMailer->setSMTPInstance( $smtp );
- $smtp(SMTP) (required)
- .
PHPMailer::setSMTPInstance() PHPMailer::setSMTPInstance code WP 7.0
public function setSMTPInstance(SMTP $smtp)
{
$this->smtp = $smtp;
return $this->smtp;
}