//If no options are provided, use whatever is set in the instance
if (null ===
$options) { $options =
$this->SMTPOptions;
} //Already connected?
if ($this->smtp->
connected()) { return true;
} $this->smtp->
setTimeout($this->Timeout
);
$this->smtp->
setDebugLevel($this->SMTPDebug
);
$this->smtp->
setDebugOutput($this->Debugoutput
);
$this->smtp->
setVerp($this->do_verp
);
if ($this->Host === null
) { $this->Host = 'localhost';
} $hosts =
explode(';',
$this->Host
);
$lastexception = null;
foreach ($hosts as $hostentry) { $hostinfo =
[];
if ( !