PHPMailer\PHPMailer

SMTP::xclient()publicWP 1.0

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

Метод класса: SMTP{}

Хуков нет.

Возвращает

true|false. True on success

Использование

$SMTP = new SMTP();
$SMTP->xclient( $vars );
$vars(массив) (обязательный)
-

Код SMTP::xclient() WP 6.7.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);
}