public function PHPMailer::getSMTPInstance
Search API
5.x PHPMailer.php | public PHPMailer::getSMTPInstance() |
Get an instance to use for SMTP operations. Override this function to load your own SMTP implementation, or set one with setSMTPInstance.
Return value
SMTP
1 call to PHPMailer::getSMTPInstance()
- PHPMailer::smtpConnect in inc/
PHPMailer/ src/ PHPMailer.php - Initiate a connection to an SMTP server. Returns false if the operation failed.
File
- inc/
PHPMailer/ src/ PHPMailer.php, line 1756
Class
- PHPMailer
- PHPMailer - PHP email creation and transport class.
Namespace
PHPMailer\PHPMailerCode
public function getSMTPInstance()
{
if (!is_object($this->smtp)) {
$this->smtp = new SMTP();
}
return $this->smtp;
}