Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

smtpmailer Class Reference
[SMTP-Mailer-Class]

Inheritance diagram for smtpmailer:

mimemail List of all members.

Public Member Functions

 smtpmailer ($host, $timeout=10)
 Class Constructor.
 _smtpmailer ()
 Class Destructor.
 smtp_esmtp_init ($login, $pwd, $enable=true)
 Enable ESMTP protocol.
 smtp_do_send ($type="text/plain")
 Sends the email.
 smtp_flush_errors ()
 Flush the complete SMTP ASCII error buffer.
 smtp_flush_stream ()
 Flush the complete SMTP ASCII stream.
 smtp_get_errorlist ()
 Return error string list.
 smtp_get_stream ()
 Return SMTP stream string array.
 smtp_close ()
 Close connection to SMTP server.
 smtp_connect ()
 Connect to SMTP server.
 smtp_esmtp_auth ()
 ESMTP authentifictaion sequenz.
 smtp_get_data ($endsign="LINE")
 Return raw data from server and check if it is an error or not.
 smtp_keepalive ()
 Keeps the connection.
 smtp_send_cmd ($cmd)
 Send SMTP command to server.
 smtp_send_from ()
 Send transmitter adress to server.
 smtp_send_hello ()
 Sends hello command to server.
 smtp_send_quit ()
 Sends quit command to server.
 smtp_send_raw ()
 Sends the raw mail data to server.
 smtp_send_to ()
 Sends receiver list to server.
 smtp_verify ($data)
 Verify message ASCII string to server.

Public Attributes

 $smtp_crlf = "\r\n"
 $smtp_enable_esmtp
 $smtp_error_hdl = 0
 $smtp_host
 $smtp_login
 $smtp_password
 $smtp_socket_hdl = 0
 $smtp_socket_stream = array()
 $smtp_timeout

Constructor & Destructor Documentation

function smtpmailer::smtpmailer host,
timeout = 10
 

Class Constructor.

Parameters:
$host = Mail hoster.
$timeout = Connection timeout


Member Function Documentation

function smtpmailer::_smtpmailer  ) 
 

Class Destructor.

function smtpmailer::smtp_close  ) 
 

Close connection to SMTP server.

Returns:
Returns 'true' if everything has been all right else 'false'.

function smtpmailer::smtp_connect  ) 
 

Connect to SMTP server.

Returns:
Returns 'true' if everything has been all right else 'false'.

function smtpmailer::smtp_do_send type = "text/plain"  ) 
 

Sends the email.

Parameters:
$type = "text/plain" or "text/html"
Returns:
Returns 'true' if everything has been all right else 'false'.

function smtpmailer::smtp_esmtp_auth  ) 
 

ESMTP authentifictaion sequenz.

Returns:
Returns 'true' if everything has been all right else 'false'.

function smtpmailer::smtp_esmtp_init enable = true,
login,
pwd = true
 

Enable ESMTP protocol.

Parameters:
$login = User login name
$pwd = User password
$enable = Enable smtp protocol
Returns:
Returns 'true' if everything has been all right else 'false'.

function smtpmailer::smtp_flush_errors  ) 
 

Flush the complete SMTP ASCII error buffer.

Returns:
Returns 'true' if everything has been all right else 'false'.

function smtpmailer::smtp_flush_stream  ) 
 

Flush the complete SMTP ASCII stream.

Returns:
Returns 'true' if everything has been all right else 'false'.

function smtpmailer::smtp_get_data endsign = "LINE"  ) 
 

Return raw data from server and check if it is an error or not.

Parameters:
$endsign = Look into fsocket_get_socketdata() function doc.
Returns:
Raw data from server

function smtpmailer::smtp_get_errorlist  ) 
 

Return error string list.

Returns:
Error list

function smtpmailer::smtp_get_stream  ) 
 

Return SMTP stream string array.

Returns:
Socket stream string array

function smtpmailer::smtp_keepalive  ) 
 

Keeps the connection.

Returns:
Returns 'true' if everything has been all right else 'false'.

function smtpmailer::smtp_send_cmd cmd  ) 
 

Send SMTP command to server.

Parameters:
$cmd = Command to send
Returns:
Returns 'true' if everything has been all right else 'false'.

function smtpmailer::smtp_send_from  ) 
 

Send transmitter adress to server.

Returns:
Returns 'true' if everything has been all right else 'false'.

function smtpmailer::smtp_send_hello  ) 
 

Sends hello command to server.

Returns:
Returns 'true' if everything has been all right else 'false'.

function smtpmailer::smtp_send_quit  ) 
 

Sends quit command to server.

Returns:
Returns 'true' if everything has been all right else 'false'.

function smtpmailer::smtp_send_raw  ) 
 

Sends the raw mail data to server.

Returns:
Returns 'true' if everything has been all right else 'false'.

function smtpmailer::smtp_send_to  ) 
 

Sends receiver list to server.

Returns:
Returns 'true' if everything has been all right else 'false'.

function smtpmailer::smtp_verify data  ) 
 

Verify message ASCII string to server.

Returns:
Returns 'true' if everything has been all right else 'false'.


Member Data Documentation

smtpmailer::$smtp_crlf = "\r\n"
 

Carriage return line feed

smtpmailer::$smtp_enable_esmtp
 

State of ESMTP server protocol

smtpmailer::$smtp_error_hdl = 0
 

Error message handler

smtpmailer::$smtp_host
 

Host name or IP

smtpmailer::$smtp_login
 

Login name (Only if ESMTP protocol is enabled)

smtpmailer::$smtp_password
 

Login password (Only if ESMTP protocol is enabled)

smtpmailer::$smtp_socket_hdl = 0
 

Socket handle

smtpmailer::$smtp_socket_stream = array()
 

Socket stream

smtpmailer::$smtp_timeout
 

Connection timeout


The documentation for this class was generated from the following file:
Generated on Fri Aug 26 08:13:54 2005 for PHP-Lib-Xtreme by  doxygen 1.4.3