function SMTP::sendHello
Search API
5.x SMTP.php | protected SMTP::sendHello($hello, $host) |
Send an SMTP HELO or EHLO command. Low-level implementation used by hello().
Parameters
string $hello The HELO string:
string $host The hostname to say we are:
Return value
bool
See also
hello()
File
- inc/
PHPMailer/ src/ SMTP.php, line 750
Class
- SMTP
- PHPMailer RFC821 SMTP email transport class. Implements RFC 821 SMTP commands and provides some utility methods for sending mail to an SMTP server.
Code
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;
}