PHPMailer\PHPMailer\SMTP::getServerExt
Get metadata about the SMTP server from its HELO/EHLO response.
The method works in three ways, dependent on argument value and current state: 1. HELO/EHLO has not been sent - returns null and populates $this->error. 2. HELO has been sent - $name == 'HELO': returns server name $name == 'EHLO': returns boolean false $name == any other string: returns null and populates $this->error 3. EHLO has been sent - $name == 'HELO'|'EHLO': returns the server name $name == any other string: if extension $name exists, returns True or its options (e.g. AUTH mechanisms supported). Otherwise returns False.
Signature
public function getServerExt(string
$name )
Parameters
$name
— string- Name of SMTP extension or 'HELO'|'EHLO'
Returns
- mixed