init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
20
mail.php
Normal file
20
mail.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?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);
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue