\POP3

POP Before SMTP Authentication Class Version 5.2.1

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.

Summary

Methods
Properties
Constants
__construct()
Authorise()
Connect()
Login()
Disconnect()
$POP3_PORT
$POP3_TIMEOUT
$CRLF
$do_debug
$host
$port
$tval
$username
$password
$Version
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$POP3_PORT

$POP3_PORT : 

Default POP3 port

Type

$POP3_TIMEOUT

$POP3_TIMEOUT : 

Default Timeout

Type

$CRLF

$CRLF : 

POP3 Carriage Return + Line Feed

Type

$do_debug

$do_debug : 

Displaying Debug warnings? (0 = now, 1+ = yes)

Type

$host

$host : 

POP3 Mail Server

Type

$port

$port : 

POP3 Port

Type

$tval

$tval : 

POP3 Timeout Value

Type

$username

$username : 

POP3 Username

Type

$password

$password : 

POP3 Password

Type

$Version

$Version : 

Sets the POP3 PHPMailer Version number

Type

Methods

__construct()

__construct() : \POP3

Constructor, sets the initial values

Returns

\POP3 —

Authorise()

Authorise(  host,   port = false,   tval = false,   username,   password,  debug_level) : 

Combination of public events - connect, login, disconnect

Parameters

host
port
tval
username
password
debug_level

Returns

Connect()

Connect(  host,   port = false,   tval = 30) : 

Connect to the POP3 server

Parameters

host
port
tval

Returns

Login()

Login(  username,   password) : 

Login to the POP3 server (does not support APOP yet)

Parameters

username
password

Returns

Disconnect()

Disconnect() : 

Disconnect from the POP3 server

Returns