hello,
i am having some problems retrieving email from gmail. im not sure if its because its pop or what. unfortunatly my host doesnt have the pop module. but here is the code.
$imap = imap_open("{pop.gmail.com:995}INBOX",
"username", "password");
$messages = imap_sort($imap, SORTFROM, 1);
foreach ($messages as $message) {
$header = imap_header($imap, $message);
$prettydate = date("jS F Y", $header->udate);
print "{$header->fromaddress} - $prettydate";?><br><?php
}
imap_close($imap);
any help with this will be greatly appreciated.