cogigo Through this we can get the mail, specifically
Gmail account using PHP.
imap_num_msg $ cannot = ($ stream);
for ($ nm = 1, $ nm <=$cant;$nm++){ $asunto=""; $header = imap_header($stream, $nm); $from=$header-> from;
$ from = $ from [0] -> mailbox;
$ subject = $ header-> subject;
$ date = $ header-> date;
/ / imap_delete ($ stream , $ nm) / / Check the mail for deletion
} / / imap_expunge ($ stream) / / Delete the mail marked for deletion
if ($ qty == 0) echo " new mails found
"
} else {
echo" ERROR
"}
imap_close ($ stream);
echo "Offline ...";
?>
Wednesday, October 1, 2008
Overusing Cruise Control
really complicated code to obneter mails of Google (PHP)
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment