Performs CRAM-MD5 authentication
Minimum implementation according to RFC2821: EHLO, MAIL FROM, RCPT TO, DATA, RSET, NOOP, QUIT
category | Zend |
---|---|
package | Zend_Mail |
subpackage | Protocol |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Mail_Protocol_Smtp |
__construct(string $host= '127.0.0.1'
, integer $port= null
, array $config= null
) : void
inherited_from | \Zend_Mail_Protocol_Smtp::__construct() |
---|
string
(Default: 127.0.0.1)
integer
(Default: null)
array
Auth-specific parameters
__construct(string $host= '127.0.0.1'
, integer $port= null
) : void
string
OPTIONAL Hostname of remote connection (default: 127.0.0.1)
integer
OPTIONAL Port number (default: null)
\Zend_Mail_Protocol_Exception |
---|
__destruct() : void
auth() : void
This default method is implemented by AUTH adapters to properly authenticate to a remote host.
todo | Perform CRAM-MD5 authentication with supplied credentials |
---|---|
inherited_from | \Zend_Mail_Protocol_Smtp::auth() |
auth() : void
This default method is implemented by AUTH adapters to properly authenticate to a remote host.
\Zend_Mail_Protocol_Exception |
---|
connect()
Concrete adapters for this class will implement their own unique connect scripts, using the _connect() method to create the socket resource.
data(string $data) : void
string
\Zend_Mail_Protocol_Exception |
---|
disconnect() : void
getLog() : string
string
getMaximumLog() : integer
integer
the maximum log sizegetRequest() : string
string
getResponse() : array
array
helo(string $host = '127.0.0.1'
) : void
string
The client hostname or IP address (default: 127.0.0.1)
\Zend_Mail_Protocol_Exception |
---|
mail(string $from) : void
string
Sender mailbox
\Zend_Mail_Protocol_Exception |
---|
noop() : void
Not used by Zend_Mail, could be used to keep a connection alive or check if it is still open.
quit() : void
rcpt(string $to) : void
string
Receiver(s) mailbox
\Zend_Mail_Protocol_Exception |
---|
resetLog() : void
rset() : void
Can be used to restore a clean smtp communication state when a transaction has been cancelled or commencing a new transaction.
setMaximumLog(integer $maximumLog) : void
integer
Maximum log size
vrfy(string $user) : void
Not used by Zend_Mail.
string
User Name or eMail to verify
_addLog($value) : void
_connect(string $remote) : boolean
An example $remote string may be 'tcp://mail.example.com:25' or 'ssh://hostname.com:2222'
string
Remote
\Zend_Mail_Protocol_Exception |
---|
boolean
_disconnect() : void
_ehlo(string $host) : void
string
The client hostname or IP address (default: 127.0.0.1)
\Zend_Mail_Protocol_Exception |
---|
_expect(string|array $code, $timeout = null
) : string
Read the response from the stream and check for expected return code. Throws a Zend_Mail_Protocol_Exception if an unexpected code is returned.
string
array
One or more codes that indicate a successful response
\Zend_Mail_Protocol_Exception |
---|
string
Last line of response string_hmacMd5(string $key, string $data, string $block = 64
) : string
string
Challenge key (usually password)
string
Challenge data
string
Length of blocks
string
_receive($timeout = null
) : string
var | Per-request timeout value if applicable |
---|
\Zend_Mail_Protocol_Exception |
---|
string
_send(string $request) : integer | boolean
string
\Zend_Mail_Protocol_Exception |
---|
integer
boolean
Number of bytes written to remote host_setStreamTimeout(integer $timeout) : boolean
integer
boolean
_startSession() : void
_stopSession() : void
$_auth : \unknown_type
false
$_data : \unknown_type
null
$_helo : \unknown_type
false
$_host : string
$_mail : \unknown_type
false
$_maximumLog : integer
64
$_port : integer
$_rcpt : \unknown_type
false
$_request : string
$_response : array
$_secure : string
$_sess : boolean
false
$_socket : resource
$_template : resource
'%d%s'
deprecated | Since 1.10.3 |
---|
$_transport : string
'tcp'
$_validHost : \Zend_Validate
$_log : array
array()
EOL = "\r\n"
TIMEOUT_CONNECTION = 30