hello all
I am creating a email reader which will show me only headers and when i click those header it will bring me to the body part of mail.
Problem:-
I have developed some code which is workin only to see my headers.
I am not getting any clue,how to read my mail from those headers....here's my code.....
<?php
$mbox= imap_open("{pop.gmail.com:995/pop3/ssl}INBOX", "phptest@gmail.com", "phptest123")or die("can't connect: " . imap_last_error());
print_r(imap_errors());
echo "<h1> Mailboxes </h1>\n";
//$folders = imap_listmailbox($mbox, "{pop.gmail.com:995}", "");
$folders = imap_listmailbox($mbox, "{pop.gmail.com:995}", "");
print_r($folders);
if ($folders == false) {
echo "No Folders Found<br />\n";
} else {
foreach ($folders as $val) {
echo $val . "<br />\n";
}
}
echo "<h1>Headers in INBOX</h1>\n";
$headers = imap_headers($mbox);
if ($headers == false) {
echo "Call failed<br />\n";
} else {
foreach ($headers as $val) {
echo $val . "<br />\n";
}
}
imap_close($mbox);
?>
PLz anyone give some idea ,how to go forward frm here>>>>
Thanx in advance