POP3::user()publicWP 1.0

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$POP3 = new POP3();
$POP3->user ( $user );
$user **
-
По умолчанию: ""

Код POP3::user() WP 6.5.2

function user ($user = "") {
    // Sends the USER command, returns true or false

    if( empty($user) ) {
        $this->ERROR = "POP3 user: " . _("no login ID submitted");
        return false;
    } elseif(!isset($this->FP)) {
        $this->ERROR = "POP3 user: " . _("connection not established");
        return false;
    } else {
        $reply = $this->send_cmd("USER $user");
        if(!$this->is_ok($reply)) {
            $this->ERROR = "POP3 user: " . _("Error ") . "[$reply]";
            return false;
        } else
            return true;
    }
}