SMTP::sendCommand

SummerySummery

Send a command to an SMTP server and check its return code.

Syntax

SMTP::sendCommand( string $command, string $commandstring, integer|array $expect )

ParametersParameters

$command

(string) (Required) The command name - not sent to the server

$commandstring

(string) (Required) The actual command to send

$expect

(integer|array) (Required) One or more expected integer success codes

ReturnReturn

(boolean) True on success.

SourceSource

File: wp-includes/class-smtp.php


			
Scroll to Top