previousNet_POP3::getSize() (Previous) (Next) Net_POP3::numMsg()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

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.

previousNet_POP3::getSize() (Previous) (Next) Net_POP3::numMsg()next

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
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.