Public constructor
Zend_Mail_Transport_Imap
__construct
([string $host = ''], [int $port = null], [bool $ssl = false])
-
string
$host: hostname of IP address of IMAP server, if given connect() is called
-
int
$port: port of IMAP server, default is 143 (993 for ssl)
-
bool
$ssl: use ssl?
Public destructor
void
__destruct
()
Get capabilities from IMAP server
array
capability
()
Open connection to POP3 server
string
connect
(string $host, [int $port = null], [string $ssl = false])
-
string
$host: hostname of IP address of POP3 server
-
int
$port: of IMAP server, default is 143 (993 for ssl)
-
string
$ssl: use 'SSL' or 'TLS'
escape one or more literals i.e. for sendRequest
string|array
escapeString
( $string)
examine folder
bool|array
examine
([ $box = 'INBOX'])
Examine and select have the same response. The common code for both is in this method
bool|array
examineOrSelect
([ $command = 'EXAMINE'], [ $box = 'INBOX'])
void
fetch
( $items, $from, [ $to = null])
Login to IMAP server.
bool
login
(string $user, string $password)
-
string
$user: username
-
string
$password: password
logout of imap server
bool
logout
()
read a response "line" (could also be more than one real line if response has {..}<NL>) and do a simple decode
bool
readLine
([ &$tokens = array()], [ $wantedTag = '*'])
read all lines of response until given tag is found (last line of response)
null|bool|array
readResponse
( $tag, [ $filter = ''])
send a request and get response at once
mixed
requestAndResponse
( $command, [ $tokens = array()])
change folder
bool|array
select
([ $box = 'INBOX'])
send a request
void
sendRequest
( $command, [ $tokens = array()], [ &$tag = null])