class smtp_class

SMTP Class Auth Mechanisms originally taken from the AUTH Modules found within the PHP Extension and Application Repository (PEAR) See docs/AUTHORS for more details

Properties

$server_response
$socket
protected $socket_tls
$responses
$commands
$numeric_response_code
$backtrace
$backtrace_log

Methods

__construct()

No description

add_backtrace($message)

Add backtrace message for debugging

server_send($command, $private_info = false)

Send command to smtp server

server_parse($response, $line)

We use the line to give the support people an indication at which command the error occurred

close_session($err_msg)

Close session

log_into_server($hostname, $username, $password, $default_auth_method)

Log into server and get possible auth codes if neccessary

mixed
hello($hostname)

SMTP EHLO/HELO

bool
starttls()

SMTP STARTTLS (RFC 3207)

pop_before_smtp($hostname, $username, $password)

Pop before smtp authentication

plain($username, $password)

Plain authentication method

login($username, $password)

Login authentication method

cram_md5($username, $password)

cram_md5 authentication method

digest_md5($username, $password)

digest_md5 authentication method A real pain in the ***

Details

at line 1336
__construct()

No description

at line 1346
add_backtrace($message)

Add backtrace message for debugging

Parameters

$message

at line 1357
server_send($command, $private_info = false)

Send command to smtp server

Parameters

$command
$private_info

at line 1369
server_parse($response, $line)

We use the line to give the support people an indication at which command the error occurred

Parameters

$response
$line

at line 1401
close_session($err_msg)

Close session

Parameters

$err_msg

at line 1415
log_into_server($hostname, $username, $password, $default_auth_method)

Log into server and get possible auth codes if neccessary

Parameters

$hostname
$username
$password
$default_auth_method

at line 1552
protected mixed hello($hostname)

SMTP EHLO/HELO

Parameters

$hostname

Return Value

mixed

Null if the authentication process is supposed to continue False if already authenticated Error message (string) otherwise

at line 1589
protected bool starttls()

SMTP STARTTLS (RFC 3207)

Return Value

bool

Returns true if TLS was started Otherwise false

at line 1633
pop_before_smtp($hostname, $username, $password)

Pop before smtp authentication

Parameters

$hostname
$username
$password

at line 1668
plain($username, $password)

Plain authentication method

Parameters

$username
$password

at line 1689
login($username, $password)

Login authentication method

Parameters

$username
$password

at line 1715
cram_md5($username, $password)

cram_md5 authentication method

Parameters

$username
$password

at line 1742
digest_md5($username, $password)

digest_md5 authentication method A real pain in the ***

Parameters

$username
$password