PHPMailer\PHPMailer
SMTP::hello() public WP 1.0
Send an SMTP HELO or EHLO command. Used to identify the sending server to the receiving server. This makes sure that client and server are in a known state. Implements RFC 821: HELO <SP> <domain> <CRLF> and RFC 2821 EHLO.
{} Это метод класса: SMTP{}
Хуков нет.
Возвращает
true|false
. Null. Ничего.
Использование
$SMTP = new SMTP(); $SMTP->hello( $host );
- $host(строка)
- The host name or IP to connect to
Код SMTP::hello() SMTP::hello WP 5.7
public function hello($host = '')
{
//Try extended hello first (RFC 2821)
if ($this->sendHello('EHLO', $host)) {
return true;
}
//Some servers shut down the SMTP service here (RFC 5321)
if (substr($this->helo_rply, 0, 3) == '421') {
return false;
}
return $this->sendHello('HELO', $host);
}