1.2.1522. ext/imap¶
Extension ext/imap.
This extension operate with the IMAP protocol, as well as the NNTP, POP3 and local mailbox access methods.
<?php
$mbox = imap_open('{imap.example.org}', 'username', 'password', OP_HALFOPEN)
or die('can't connect: ' . imap_last_error());
$list = imap_list($mbox, '{imap.example.org}', '*');
if (is_array($list)) {
foreach ($list as $val) {
echo imap_utf7_decode($val) . PHP_EOL;
}
} else {
echo 'imap_list failed: ' . imap_last_error() . PHP_EOL;
}
imap_close($mbox);
?>
See also IMAP.
1.2.1522.1. Specs¶
Short name |
Extensions/Extimap |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |