Class POP3
PHPMailer POP-Before-SMTP Authentication Class. Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication. 1) This class does not support APOP authentication. 2) Opening and closing lots of POP3 connections can be quite slow. If you need to send a batch of emails then just perform the authentication once at the start, and then loop through your mail sending script. Providing this process doesn't take longer than the verification period lasts on your POP3 server, you should be fine. 3) This is really ancient technology; you should only need to use it to talk to very old systems. 4) This POP3 class is deliberately lightweight and incomplete, implementing just enough to do authentication. If you want a more complete class there are other POP3 classes for PHP available.
Author: Richard Davey (original author) rich@corephp.co.uk
Author: Marcus Bointon (Synchro/coolbru) phpmailer@synchromedia.co.uk
Author: Jim Jagielski (jimjag) jimjag@gmail.com
Author: Andy Prevost (codeworxtech) codeworxtech@users.sourceforge.net
Located at zp-extensions/PHPMailer/POP3.php
public static
boolean
|
#
popBeforeSmtp( string $host, integer|boolean $port = false, integer|boolean $timeout = false, string $username = '', string $password = '', integer $debug_level = 0 )
Simple static wrapper for all-in-one POP before SMTP. |
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
protected
string
|
|
protected
integer
|
|
protected
boolean
|
|
protected
|
|
public
array
|
|
protected
|
#
catchWarning( integer $errno, string $errstr, string $errfile, integer $errline )
POP3 connection error handler. |
string |
VERSION
The POP3 PHPMailer Version number. |
#
'6.4.1'
|
integer |
DEFAULT_PORT
Default POP3 port number. |
#
110
|
integer |
DEFAULT_TIMEOUT
Default timeout in seconds. |
#
30
|
string |
LE
Line break constant. |
#
"\r\n"
|
integer |
DEBUG_OFF
Debug level for no output. |
#
0
|
integer |
DEBUG_SERVER
Debug level to show server -> client messages also shows clients connection errors or errors from server |
#
1
|
integer |
DEBUG_CLIENT
Debug level to show client -> server and server -> client messages. |
#
2
|
public
integer
|
$do_debug
POP3 class debug output mode. Debug output level. Options: |
#
self::DEBUG_OFF
|
public
string
|
$host
POP3 mail server hostname. |
|
public
integer
|
$port
POP3 port number. |
|
public
integer
|
$tval
POP3 Timeout Value in seconds. |
|
public
string
|
$username
POP3 username. |
|
public
string
|
$password
POP3 password. |
|
protected
resource
|
$pop_conn
Resource handle for the POP3 connection socket. |
|
protected
boolean
|
$connected
Are we connected? |
#
false
|
protected
array
|
$errors
Error container. |
#
[]
|