Class POP3
POP Before SMTP Authentication Class Version 5.0.0
Author: Richard Davey (rich@corephp.co.uk) Modifications: Andy Prevost License: LGPL, see PHPMailer License
Specifically for PHPMailer to allow POP before SMTP authentication. Does not yet work with APOP - if you have an APOP account, contact Richard Davey and we can test changes to this script.
This class is based on the structure of the SMTP class originally authored by Chris Ryan
This class is rfc 1939 compliant and implements all the commands required for POP3 connection, authentication and disconnection.
Copyright: 2004 - 2009 Andy Prevost
License: Distributed under the Lesser General Public License (LGPL)
Author: Richard Davey
Located at vendors/phpmailer/class.pop3.php
Methods summary
public
|
|
public
|
#
Authorise( string $host, integer $port = false, integer $tval = false, string $username, string $password, mixed $debug_level = 0 )
Combination of public events - connect, login, disconnect |
public
boolean
|
|
public
boolean
|
#
Login( string $username = '', string $password = '' )
Login to the POP3 server (does not support APOP yet) |
public
|
|
private
string
|
#
getResponse( integer $size = 128 )
Get the socket response back. $size is the maximum number of bytes to retrieve |
private
integer
|
|
private
boolean
|
|
private
|
|
private
|
#
catchWarning( integer $errno, string $errstr, string $errfile, integer $errline )
Takes over from PHP for the socket warning handler |
Magic methods summary
Properties summary
public
integer
|
$POP3_PORT |
#
Default POP3 port |
public
integer
|
$POP3_TIMEOUT |
#
Default Timeout |
public
string
|
$CRLF |
#
POP3 Carriage Return + Line Feed |
public
integer
|
$do_debug |
#
Displaying Debug warnings? (0 = now, 1+ = yes) |
public
string
|
$host |
#
POP3 Mail Server |
public
integer
|
$port |
#
POP3 Port |
public
integer
|
$tval |
#
POP3 Timeout Value |
public
string
|
$username |
#
POP3 Username |
public
string
|
$password |
#
POP3 Password |
private
mixed
|
$pop_conn | |
private
mixed
|
$connected | |
private
mixed
|
$error |