Hier ist der code:
$mbox = imap_open ("{mail.meinmailserver.com/pop3:110}INBOX", "meine@domain.com", "meinpasswort")
|| die ("can't connect: ".imap_last_error());
echo "<p><h1>Mailboxes</h1>\n";
$folders = imap_listmailbox ($mbox, "{mail.meinmailserver.com/pop3:110}", "*");
if ($folders == false)
echo "Call failed<br>\n";
else
while (list ($key, $val) = each ($folders))
echo $val . "<br>\n";
echo "<p><h1>Headers in INBOX</h1>\n";
$headers = imap_headers ($mbox);
if ($headers == false)
echo "Call failed<br>\n";
else
while (list ($key, $val) = each ($headers))
echo $val . "<br>n";
imap_close ($mbox);
Gruß sarron
$mbox = imap_open ("{mail.meinmailserver.com/pop3:110}INBOX", "meine@domain.com", "meinpasswort")
|| die ("can't connect: ".imap_last_error());
echo "<p><h1>Mailboxes</h1>\n";
$folders = imap_listmailbox ($mbox, "{mail.meinmailserver.com/pop3:110}", "*");
if ($folders == false)
echo "Call failed<br>\n";
else
while (list ($key, $val) = each ($folders))
echo $val . "<br>\n";
echo "<p><h1>Headers in INBOX</h1>\n";
$headers = imap_headers ($mbox);
if ($headers == false)
echo "Call failed<br>\n";
else
while (list ($key, $val) = each ($headers))
echo $val . "<br>n";
imap_close ($mbox);
Gruß sarron
Kommentar