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 |
package | Default |
catchWarning(integer $errno,string $errstr,string $errfile,integer $errline)
integer
string
string
integer
checkResponse(string $string): boolean
Looks for for +OK or -ERR.
string
boolean
connect(string $host,integer|boolean $port = false,integer $tval = 30): boolean
string
integer|boolean
integer
boolean
disconnect()
getErrors(): array
array
getResponse(integer $size = 128): string
integer
The maximum number of bytes to retrieve
string
login(string $username = '',string $password = ''): boolean
Does not support APOP (RFC 2828, 4949).
string
string
boolean
popBeforeSmtp(string $host,integer|boolean $port = false,integer|boolean $timeout = false,string $username = '',string $password = '',integer $debug_level): boolean
string
The hostname to connect to
integer|boolean
The port number to connect to
integer|boolean
The timeout value
string
string
integer
boolean
sendString(string $string): integer
string
integer
setError(string $error)
Also display debug output if it's enabled.
string
VERSION
var |
---|
DEFAULT_PORT
var |
---|
DEFAULT_TIMEOUT
var |
---|
LE
DEBUG_OFF
var |
---|
DEBUG_SERVER
var |
---|
DEBUG_CLIENT
var |
---|
do_debug :integer
Debug output level. Options:
see | No output Server messages, connection/server errors Client and Server messages, connection/server errors |
---|---|
var |
integer
host :string
var |
---|
string
port :integer
var |
---|
integer
tval :integer
var |
---|
integer
username :string
var |
---|
string
password :string
var |
---|
string
pop_conn :resource
var |
---|
resource
connected :boolean
var |
---|
boolean
errors :array
var |
---|
array