PHP Class smtp_class

Mostra file Open project: phpbb/phpbb Class Usage Examples

Public Properties

Property Type Description
$backtrace
$backtrace_log
$commands
$numeric_response_code
$responses
$server_response
$socket

Protected Properties

Property Type Description
$socket_tls

Public Methods

Method Description
add_backtrace ( $message ) Add backtrace message for debugging
close_session ( &$err_msg ) Close session
cram_md5 ( $username, $password ) cram_md5 authentication method
digest_md5 ( $username, $password ) digest_md5 authentication method A real pain in the ***
log_into_server ( $hostname, $username, $password, $default_auth_method ) Log into server and get possible auth codes if neccessary
login ( $username, $password ) Login authentication method
plain ( $username, $password ) Plain authentication method
pop_before_smtp ( $hostname, $username, $password ) Pop before smtp authentication
server_parse ( $response, $line ) We use the line to give the support people an indication at which command the error occurred
server_send ( $command, $private_info = false ) Send command to smtp server
smtp_class ( )

Protected Methods

Method Description
hello ( $hostname ) : mixed SMTP EHLO/HELO
starttls ( ) : boolean SMTP STARTTLS (RFC 3207)

Method Details

add_backtrace() public method

Add backtrace message for debugging
public add_backtrace ( $message )

close_session() public method

Close session
public close_session ( &$err_msg )

cram_md5() public method

cram_md5 authentication method
public cram_md5 ( $username, $password )

digest_md5() public method

digest_md5 authentication method A real pain in the ***
public digest_md5 ( $username, $password )

hello() protected method

SMTP EHLO/HELO
protected hello ( $hostname ) : mixed
return mixed Null if the authentication process is supposed to continue False if already authenticated Error message (string) otherwise

log_into_server() public method

Log into server and get possible auth codes if neccessary
public log_into_server ( $hostname, $username, $password, $default_auth_method )

login() public method

Login authentication method
public login ( $username, $password )

plain() public method

Plain authentication method
public plain ( $username, $password )

pop_before_smtp() public method

Pop before smtp authentication
public pop_before_smtp ( $hostname, $username, $password )

server_parse() public method

We use the line to give the support people an indication at which command the error occurred
public server_parse ( $response, $line )

server_send() public method

Send command to smtp server
public server_send ( $command, $private_info = false )

smtp_class() public method

public smtp_class ( )

starttls() protected method

SMTP STARTTLS (RFC 3207)
protected starttls ( ) : boolean
return boolean Returns true if TLS was started Otherwise false

Property Details

$backtrace public_oe property

public $backtrace

$backtrace_log public_oe property

public $backtrace_log

$commands public_oe property

public $commands

$numeric_response_code public_oe property

public $numeric_response_code

$responses public_oe property

public $responses

$server_response public_oe property

public $server_response

$socket public_oe property

public $socket

$socket_tls protected_oe property

protected $socket_tls