PHPMailer\PHPMailer
SMTP::sendHello()
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() SMTP::sendHello WP 6.7.1
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; }