WordPress at a glance
function is not described

PHPMailer\PHPMailer

SMTP::sendHello() protected WP 1.0

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

{} It's a 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()

Code of SMTP::sendHello() WP 5.7.2

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