Loads an instance of Zend_Mail_Protocol_Smtp and forwards smtp transactions
category |
Zend |
package |
Zend_Mail |
subpackage |
Transport |
copyright |
Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license |
New BSD License |
inherited_from |
\Zend_Mail_Transport_Abstract |
Methods
Constructor.
__construct(string $host = '127.0.0.1'
, array|null $config = array()
) : void
todo |
Someone please make this compatible
with the SendMail transport class. |
Parameters
$host
string
OPTIONAL (Default: 127.0.0.1)
$config
array
null
OPTIONAL (Default: null)
Class destructor to ensure all open connections are closed
__destruct() : void
Send an email via the SMTP connection protocol
_sendMail() : void
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.
todo |
Rename this to sendMail, it's a public method... |
inherited_from |
\Zend_Mail_Transport_Abstract::_sendMail() |
Gets the connection protocol instance
getConnection() : \Zend_Mail_Protocol | null
Returns
\Zend_Mail_Protocol
null
Send a mail using this transport
send(\Zend_Mail $mail) : void
Inherited
Parameters
$mail
\Zend_Mail
Exceptions
\Zend_Mail_Transport_Exception |
if mail is empty |
Sets the connection protocol instance
setConnection(\Zend_Mail_Protocol_Abstract $connection) : void
Generate MIME compliant message from the current configuration
_buildBody() : void
Inherited
If both a text and HTML body are present, generates a
multipart/alternative Zend_Mime_Part containing the headers and contents
of each. Otherwise, uses whichever of the text or HTML parts present.
The content part is then prepended to the list of Zend_Mime_Parts for
this message.
Send an email independent from the used transport
_sendMail()
Inherited
The requisite information for the email will be found in the following
properties:
- \$recipients - list of recipients (string)
- \$header - message header
- \$body - message body
Properties
EOL character string used by transport
$EOL : string
access |
public |
inherited_from |
\Zend_Mail_Transport_Abstract::EOL |
EOL character string used by transport
$EOL : string
MIME boundary
$boundary : string
Recipients string
$recipients : string
Authentication type OPTIONAL
$_auth : string
Config options for authentication
$_config : array
Instance of Zend_Mail_Protocol_Smtp
$_connection : \Zend_Mail_Protocol_Smtp
Remote smtp hostname or i.p.
$_host : string
Message is a multipart message
$_isMultipart : boolean
Zend_Mail object
$_mail : false | \Zend_Mail
Local client hostname or i.p.
$_name : string
Array of message parts
$_parts : array
Port number
$_port : integer | null