20 lines
492 B
PHP
20 lines
492 B
PHP
<?php
|
|
$mbox = imap_open("{imap.jb-transport.de:143/novalidate-cert}INBOX", "edv@jb-transport.de", "nV57eeeM", OP_HALFOPEN)
|
|
or die("can't connect: " . imap_last_error());
|
|
|
|
$list = imap_list($mbox, "{imap.jb-transport.de}", "*");
|
|
if (is_array($list)) {
|
|
foreach ($list as $val) {
|
|
echo imap_utf7_decode($val) . "<br />\n";
|
|
}
|
|
$check = imap_check ($mbox);
|
|
|
|
echo imap_num_msg($mbox);
|
|
|
|
|
|
} else {
|
|
echo "imap_list failed: " . imap_last_error() . "\n";
|
|
}
|
|
|
|
imap_close($mbox);
|
|
?>
|