SMTP::sendCommand
Send a command to an SMTP server and check its return code.
Signature
protected function sendCommand(string
$command,
string
$commandstring,
integer|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
- boolean
- True on success.
Violations
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
867 | 141 | warning | Line exceeds 120 characters; contains 141 characters |