PHPMailer\PHPMailer\SMTP::sendHello PHP Method

sendHello() protected method

Low-level implementation used by hello()
See also: hello()
protected sendHello ( string $hello, string $host ) : boolean
$hello string The HELO string
$host string The hostname to say we are
return boolean
    protected function sendHello($hello, $host)
    {
        $noerror = $this->sendCommand($hello, $hello . ' ' . $host, 250);
        $this->helo_rply = $this->last_reply;
        if ($noerror) {
            $this->parseHelloFields($hello);
        } else {
            $this->server_caps = null;
        }
        return $noerror;
    }