PHPMailer\PHPMailer

SMTP::sendHello()protectedWP 1.0

Send an SMTP HELO or EHLO command. Low-level implementation used by hello().

Method of the class: SMTP{}

No Hooks.

Return

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->sendHello( $hello, $host );
$hello(string) (required)
The HELO string
$host(string) (required)
The hostname to say we are

Notes

  • See: hello()

SMTP::sendHello() code WP 6.5.2

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;
}