Dzięki koledzy, noto teraz czas na pytania:
wydziergałem coś takiego:
<?
$mbox = imap_open("{xxxxxx.pl:110/pop3}INBOX", "zzzz@xxxxxxpl", "haselko");
if (imap_num_msg($mbox) == 0)
{
}
else{
$emails = imap_search($mbox, "UNSEEN SUBJECT palety");
foreach ($emails as $message) {
$naglowek = imap_headerinfo($mbox,$message,80,80);
$from = $naglowek->from[0]->mailbox . '@' . $naglowek->from[0]->host;
$date = gmdate('Y-m-d H:i:s', $naglowek->udate); $body = nl2br(imap_fetchbody
($mbox, $message, "1")); }
}
}
?>
Wszystko pinknie czyta, ale teraz jak mam ustawić wiadomość na "przeczytaną"?
Daję np.:
<?php
foreach ($emails as $message) {
$naglowek = imap_headerinfo($mbox,$message,80,80);
$from = $naglowek->from[0]->mailbox . '@' . $naglowek->from[0]->host;
$date = gmdate('Y-m-d H:i:s', $naglowek->udate); $body = nl2br(imap_fetchbody
($mbox, $message, "1")); $status = imap_setflag_full($mbox, "2,5", "Seen");
}
}
?>
i niestety nie działa :/
Dzięki za rozwianie wątpliwości