Zend Framework
1.12
|
Public Member Functions | |
__construct ($host= '127.0.0.1', Array $config=array()) | |
Constructor. | |
__destruct () | |
Class destructor to ensure all open connections are closed. | |
setConnection (Zend_Mail_Protocol_Abstract $connection) | |
Sets the connection protocol instance. | |
getConnection () | |
Gets the connection protocol instance. | |
_sendMail () | |
Send an email via the SMTP connection protocol. | |
![]() | |
send (Zend_Mail $mail) | |
Send a mail using this transport. | |
Public Attributes | |
$EOL = "\n" | |
![]() | |
$body = '' | |
$boundary = '' | |
$header = '' | |
$recipients = '' | |
$EOL = "\r\n" | |
Protected Member Functions | |
_prepareHeaders ($headers) | |
Format and fix headers. | |
![]() | |
_sendMail () | |
Send an email independent from the used transport. | |
_getHeaders ($boundary) | |
Return all mail headers as an array. | |
_prepareHeaders ($headers) | |
Prepare header string for use in transport. | |
_buildBody () | |
Generate MIME compliant message from the current configuration. | |
Protected Attributes | |
$_host | |
$_port | |
$_name = 'localhost' | |
$_auth | |
$_config | |
$_connection | |
![]() | |
$_headers = array() | |
$_isMultipart = false | |
$_mail = false | |
$_parts = array() | |
Additional Inherited Members | |
![]() | |
static | _formatHeader (&$item, $key, $prefix) |
Prepend header name to header value. | |
__construct | ( | $host = '127.0.0.1' , |
|
Array | $config = array() |
||
) |
Constructor.
string | $host | OPTIONAL (Default: 127.0.0.1) |
array | null | $config | OPTIONAL (Default: null) |
__destruct | ( | ) |
Class destructor to ensure all open connections are closed.
|
protected |
Format and fix headers.
Some SMTP servers do not strip BCC headers. Most clients do it themselves as do we.
protected
array | $headers |
Zend_Transport_Exception |
_sendMail | ( | ) |
Send an email via the SMTP connection protocol.
The connection via the protocol adapter is made just-in-time to allow a developer to add a custom adapter if required before mail is sent.
getConnection | ( | ) |
Gets the connection protocol instance.
setConnection | ( | Zend_Mail_Protocol_Abstract | $connection | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
$EOL = "\n" |