PHP Class smtp_class

Afficher le fichier Open project: phpbb/phpbb Class Usage Examples

Méthodes publiques

Свойство Type Description
$backtrace
$backtrace_log
$commands
$numeric_response_code
$responses
$server_response
$socket

Protected Properties

Свойство Type Description
$socket_tls

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

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

Method Details

add_backtrace() public méthode

Add backtrace message for debugging
public add_backtrace ( $message )

close_session() public méthode

Close session
public close_session ( &$err_msg )

cram_md5() public méthode

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

digest_md5() public méthode

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

hello() protected méthode

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

log_into_server() public méthode

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

login() public méthode

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

plain() public méthode

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

pop_before_smtp() public méthode

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

server_parse() public méthode

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 méthode

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

smtp_class() public méthode

public smtp_class ( )

starttls() protected méthode

SMTP STARTTLS (RFC 3207)
protected starttls ( ) : boolean
Résultat 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