POP3::pass()publicWP 1.0

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

Хуков нет.

Возвращает

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

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

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

Код POP3::pass() WP 6.5.2

function pass ($pass = "")     {
    // Sends the PASS command, returns # of msgs in mailbox,
    // returns false (undef) on Auth failure

    if(empty($pass)) {
        $this->ERROR = "POP3 pass: " . _("No password submitted");
        return false;
    } elseif(!isset($this->FP)) {
        $this->ERROR = "POP3 pass: " . _("connection not established");
        return false;
    } else {
        $reply = $this->send_cmd("PASS $pass");
        if(!$this->is_ok($reply)) {
            $this->ERROR = "POP3 pass: " . _("Authentication failed") . " [$reply]";
            $this->quit();
            return false;
        } else {
            //  Auth successful.
            $count = $this->last("count");
            $this->COUNT = $count;
            return $count;
        }
    }
}