\POP3
PHP POP-Before-SMTP Authentication Class
Version 5.2.6
- Author: Richard Davey (orig) <rich@corephp.co.uk>
- License: : LGPL, see PHPMailer License
Synopsis
class POP3
{
- // members
- public $POP3_PORT;
- public $POP3_TIMEOUT;
- public $CRLF;
- public $do_debug;
- public $host;
- public $port;
- public $tval;
- public $username;
- public $password;
- public $Version;
- private $pop_conn;
- private $connected;
- private $error;
- // methods
- public POP3 __construct()
- public bool Authorise()
- public boolean Connect()
- public boolean Login()
- public void Disconnect()
- private string getResponse()
- private integer sendString()
- private boolean checkResponse()
- private void displayErrors()
- private void catchWarning()
Members
private
- $connected — boolean
- $error — array
- $pop_conn — resource
public
- $CRLF
—
string
POP3 Carriage Return + Line Feed - $POP3_PORT
—
int
Default POP3 port - $POP3_TIMEOUT
—
int
Default Timeout - $Version
—
string
Sets the POP3 PHPMailer Version number - $do_debug
—
int
Displaying Debug warnings? (0 = now, 1+ = yes) - $host
—
string
POP3 Mail Server - $password
—
string
POP3 Password - $port
—
int
POP3 Port - $tval
—
int
POP3 Timeout Value - $username
—
string
POP3 Username
Methods
private
- catchWarning() — Takes over from PHP for the socket warning handler
- checkResponse() — Checks the POP3 server response for +OK or -ERR
- displayErrors() — If debug is enabled, display the error message array
- getResponse() — Get the socket response back.
- sendString() — Send a string down the open socket connection to the POP3 server
public
- __construct() — Constructor, sets the initial values
- Authorise() — Combination of public events - connect, login, disconnect
- Connect() — Connect to the POP3 server
- Disconnect() — Disconnect from the POP3 server
- Login() — Login to the POP3 server (does not support APOP yet)