PHPMailer\PHPMailer

SMTP::xclientpublicWP 1.0

Send SMTP XCLIENT command to server and check its return code.

Method of the class: SMTP{}

No Hooks.

Returns

true|false. True on success

Usage

$SMTP = new SMTP();
$SMTP->xclient( $vars );
$vars(array) (required)
.

SMTP::xclient() code WP 6.8.1

public function xclient(array $vars)
{
    $xclient_options = "";
    foreach ($vars as $key => $value) {
        if (in_array($key, SMTP::$xclient_allowed_attributes)) {
            $xclient_options .= " {$key}={$value}";
        }
    }
    if (!$xclient_options) {
        return true;
    }
    return $this->sendCommand('XCLIENT', 'XCLIENT' . $xclient_options, 250);
}