PHPMailer\PHPMailer\SMTP::sendCommand
Send a command to an SMTP server and check its return code.
Signature
protected function sendCommand(string
$command,
string
$commandstring,
int|array
$expect )
Parameters
$command
—
string
- The command name - not sent to the server
$commandstring
—
string
- The actual command to send
$expect
—
object
- One or more expected integer success codes
Returns
- bool
- True on success