Net_POP3::login()

Net_POP3::login() – Performs the login procedure

Synopsis

require_once 'Net/POP3.php';

boolean Net_POP3::login ( string $user string $pass boolean $apop )

Description

Performs the login procedure. If there is a timestamp stored, APOP will be tried first, then basic USER/PASS.

Parameter

  • string $user - Username to use

  • string $pass - Password to use

  • boolean $apop - Whether to try APOP first

Return value

Returns TRUE on success, PEAR_Error on failure.

Note

This function can not be called statically.

Returns the size of the maildrop (Previous) number of messages in this maildrop (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

Note by: lance.fordham@gmail.com
If you are getting authentication errors then use the third parameter like this:

$ret = $pop3->login($mail_username, $mail_password, 'USER');

Where 'USER' is a string and not a boolean value.

Apparently nobody is going to fix it.