ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
PHPMailer POP-Before-SMTP Authentication Class. More...
Public Member Functions | |
authorise ($host, $port=false, $timeout=false, $username='', $password='', $debug_level=0) | |
Authenticate with a POP3 server. More... | |
connect ($host, $port=false, $tval=30) | |
Connect to a POP3 server. More... | |
login ($username='', $password='') | |
Log in to the POP3 server. More... | |
disconnect () | |
Disconnect from the POP3 server. More... | |
getErrors () | |
Get an array of error messages, if any. More... | |
Static Public Member Functions | |
static | popBeforeSmtp ( $host, $port=false, $timeout=false, $username='', $password='', $debug_level=0) |
Simple static wrapper for all-in-one POP before SMTP. More... | |
Data Fields | |
const | VERSION = '6.1.6' |
const | DEFAULT_PORT = 110 |
const | DEFAULT_TIMEOUT = 30 |
$do_debug = 0 | |
$host | |
$port | |
$tval | |
$username | |
$password | |
const | LE = "\r\n" |
Line break constant. More... | |
Protected Member Functions | |
getResponse ($size=128) | |
Get a response from the POP3 server. More... | |
sendString ($string) | |
Send raw data to the POP3 server. More... | |
checkResponse ($string) | |
Checks the POP3 server response. More... | |
setError ($error) | |
Add an error to the internal error store. More... | |
catchWarning ($errno, $errstr, $errfile, $errline) | |
POP3 connection error handler. More... | |
Protected Attributes | |
$pop_conn | |
$connected = false | |
$errors = [] | |
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.
PHPMailer\PHPMailer\POP3::authorise | ( | $host, | |
$port = false , |
|||
$timeout = false , |
|||
$username = '' , |
|||
$password = '' , |
|||
$debug_level = 0 |
|||
) |
Authenticate with a POP3 server.
A connect, login, disconnect sequence appropriate for POP-before SMTP authorisation.
string | $host | The hostname to connect to |
int | bool | $port | The port number to connect to |
int | bool | $timeout | The timeout value |
string | $username | |
string | $password | |
int | $debug_level |
Definition at line 172 of file POP3.php.
References PHPMailer\PHPMailer\POP3\$host, PHPMailer\PHPMailer\POP3\$password, PHPMailer\PHPMailer\POP3\$port, $result, PHPMailer\PHPMailer\POP3\$username, PHPMailer\PHPMailer\POP3\connect(), PHPMailer\PHPMailer\POP3\disconnect(), and PHPMailer\PHPMailer\POP3\login().
|
protected |
POP3 connection error handler.
int | $errno | |
string | $errstr | |
string | $errfile | |
int | $errline |
Definition at line 414 of file POP3.php.
References PHPMailer\PHPMailer\POP3\setError().
|
protected |
Checks the POP3 server response.
Looks for for +OK or -ERR.
string | $string |
Definition at line 367 of file POP3.php.
References PHPMailer\PHPMailer\POP3\setError().
Referenced by PHPMailer\PHPMailer\POP3\connect(), and PHPMailer\PHPMailer\POP3\login().
PHPMailer\PHPMailer\POP3::connect | ( | $host, | |
$port = false , |
|||
$tval = 30 |
|||
) |
Connect to a POP3 server.
string | $host | |
int | bool | $port | |
int | $tval |
Definition at line 217 of file POP3.php.
References PHPMailer\PHPMailer\POP3\$host, PHPMailer\PHPMailer\POP3\$port, PHPMailer\PHPMailer\POP3\$tval, PHPMailer\PHPMailer\POP3\checkResponse(), PHPMailer\PHPMailer\POP3\getResponse(), and PHPMailer\PHPMailer\POP3\setError().
Referenced by PHPMailer\PHPMailer\POP3\authorise().
PHPMailer\PHPMailer\POP3::disconnect | ( | ) |
Disconnect from the POP3 server.
Definition at line 310 of file POP3.php.
References PHPMailer\PHPMailer\POP3\sendString().
Referenced by PHPMailer\PHPMailer\POP3\authorise().
PHPMailer\PHPMailer\POP3::getErrors | ( | ) |
Get an array of error messages, if any.
Definition at line 401 of file POP3.php.
References PHPMailer\PHPMailer\POP3\$errors.
|
protected |
Get a response from the POP3 server.
int | $size | The maximum number of bytes to retrieve |
Definition at line 329 of file POP3.php.
References $response, and $size.
Referenced by PHPMailer\PHPMailer\POP3\connect(), and PHPMailer\PHPMailer\POP3\login().
PHPMailer\PHPMailer\POP3::login | ( | $username = '' , |
|
$password = '' |
|||
) |
Log in to the POP3 server.
Does not support APOP (RFC 2828, 4949).
string | $username | |
string | $password |
Definition at line 280 of file POP3.php.
References PHPMailer\PHPMailer\POP3\$password, PHPMailer\PHPMailer\POP3\$username, PHPMailer\PHPMailer\POP3\checkResponse(), PHPMailer\PHPMailer\POP3\getResponse(), PHPMailer\PHPMailer\POP3\sendString(), and PHPMailer\PHPMailer\POP3\setError().
Referenced by PHPMailer\PHPMailer\POP3\authorise().
|
static |
Simple static wrapper for all-in-one POP before SMTP.
string | $host | The hostname to connect to |
int | bool | $port | The port number to connect to |
int | bool | $timeout | The timeout value |
string | $username | |
string | $password | |
int | $debug_level |
Definition at line 145 of file POP3.php.
References PHPMailer\PHPMailer\POP3\$host, PHPMailer\PHPMailer\POP3\$password, PHPMailer\PHPMailer\POP3\$port, and PHPMailer\PHPMailer\POP3\$username.
|
protected |
Send raw data to the POP3 server.
string | $string |
Definition at line 346 of file POP3.php.
Referenced by PHPMailer\PHPMailer\POP3\disconnect(), and PHPMailer\PHPMailer\POP3\login().
|
protected |
Add an error to the internal error store.
Also display debug output if it's enabled.
string | $error |
Definition at line 384 of file POP3.php.
Referenced by PHPMailer\PHPMailer\POP3\catchWarning(), PHPMailer\PHPMailer\POP3\checkResponse(), PHPMailer\PHPMailer\POP3\connect(), and PHPMailer\PHPMailer\POP3\login().
|
protected |
Definition at line 126 of file POP3.php.
Referenced by PHPMailer\PHPMailer\POP3\getErrors().
PHPMailer\PHPMailer\POP3::$host |
Definition at line 77 of file POP3.php.
Referenced by PHPMailer\PHPMailer\POP3\authorise(), PHPMailer\PHPMailer\POP3\connect(), and PHPMailer\PHPMailer\POP3\popBeforeSmtp().
PHPMailer\PHPMailer\POP3::$password |
Definition at line 105 of file POP3.php.
Referenced by PHPMailer\PHPMailer\POP3\authorise(), PHPMailer\PHPMailer\POP3\login(), and PHPMailer\PHPMailer\POP3\popBeforeSmtp().
PHPMailer\PHPMailer\POP3::$port |
Definition at line 84 of file POP3.php.
Referenced by PHPMailer\PHPMailer\POP3\authorise(), PHPMailer\PHPMailer\POP3\connect(), and PHPMailer\PHPMailer\POP3\popBeforeSmtp().
PHPMailer\PHPMailer\POP3::$tval |
Definition at line 91 of file POP3.php.
Referenced by PHPMailer\PHPMailer\POP3\connect().
PHPMailer\PHPMailer\POP3::$username |
Definition at line 98 of file POP3.php.
Referenced by PHPMailer\PHPMailer\POP3\authorise(), PHPMailer\PHPMailer\POP3\login(), and PHPMailer\PHPMailer\POP3\popBeforeSmtp().
const PHPMailer\PHPMailer\POP3::LE = "\r\n" |