Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Smtp implementation of Zend_Mail_Protocol_Abstract
Minimum implementation according to RFC2821: EHLO, MAIL FROM, RCPT TO, DATA, RSET, NOOP, QUIT

\unknown_type
$_auth= 'false'
Indicates an smtp AUTH has been issued and authenticated
false
Details
\unknown_type
$_data= 'null'
Indicates that DATA has been issued and sent
null
Details
\unknown_type
$_helo= 'false'
Indicates the HELO command has been issues
false
Details
\unknown_type
$_mail= 'false'
Indicates a MAIL command has been issued
false
Details
\unknown_type
$_rcpt= 'false'
Indicates one or more RCTP commands have been issued
false
Details
boolean
$_sess= 'false'
Indicates an smtp session has been started by the HELO command
false
Details
__construct(
string $host
=
'127.0.0.1', integer $port
=
null, array $config
=
array()
)
:
void
Constructor.
Name | Type | Description |
---|---|---|
$host | string | |
$port | integer | |
$config | array |
Exception | Description |
---|---|
\Zend_Mail_Protocol_Exception |

_ehlo(
string $host
)
:
void
Send EHLO or HELO depending on capabilities of smtp host
Name | Type | Description |
---|---|---|
$host | string | The client hostname or IP address (default: 127.0.0.1) |
Exception | Description |
---|---|
\Zend_Mail_Protocol_Exception |

auth(
)
:
void
Default authentication method
This default method is implemented by AUTH adapters to properly authenticate to a remote host.
Exception | Description |
---|---|
\Zend_Mail_Protocol_Exception |

connect(
)
:
boolean
Connect to the server with the parameters given in the constructor.
Type | Description |
---|---|
boolean |

data(
string $data
)
:
void
Issues DATA command
Name | Type | Description |
---|---|---|
$data | string |
Exception | Description |
---|---|
\Zend_Mail_Protocol_Exception |

helo(
string $host
=
'127.0.0.1'
)
:
void
Initiate HELO/EHLO sequence and set flag to indicate valid smtp session
Name | Type | Description |
---|---|---|
$host | string | The client hostname or IP address (default: 127.0.0.1) |
Exception | Description |
---|---|
\Zend_Mail_Protocol_Exception |

mail(
string $from
)
:
void
Issues MAIL command
Name | Type | Description |
---|---|---|
$from | string | Sender mailbox |
Exception | Description |
---|---|
\Zend_Mail_Protocol_Exception |

noop(
)
:
void
Issues the NOOP command and validates answer
Not used by Zend_Mail, could be used to keep a connection alive or check if it is still open.

rcpt(
string $to
)
:
void
Issues RCPT command
Name | Type | Description |
---|---|---|
$to | string | Receiver(s) mailbox |
Exception | Description |
---|---|
\Zend_Mail_Protocol_Exception |

rset(
)
:
void
Issues the RSET command and validates answer
Can be used to restore a clean smtp communication state when a transaction has been cancelled or commencing a new transaction.