PHPMailer\PHPMailer

SMTP::sendHello()protectedWP 1.0

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

Метод класса: SMTP{}

Хуков нет.

Возвращает

true|false.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->sendHello( $hello, $host );
$hello(строка) (обязательный)
The HELO string
$host(строка) (обязательный)
The hostname to say we are

Заметки

  • Смотрите: hello()

Код SMTP::sendHello() 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;
}