Forum Moderators: coopster
try these
[php.net...]
$mbox = imap_open('{localhost:143}','email@example.com','password',0,1);
if(!$mbox)
echo "<p>Failed to open.</p>\n";
else {
$props = imap_check($mbox);
echo "<div>Result of imap_check()</div>\n<pre>";
print_r($props);
echo "</pre>\n";
if($props) {
if($props->Nmsgs) {
$overview = imap_fetch_overview($mbox,"1:{$props->Nmsgs}",0);
echo "<hr><div>These are the message objects:</div>\n";
echo "<pre>";
foreach($overview as $message)
print_r($message);
echo "</pre>";
}// EndIf have message(s)
else echo "<p>No messages</p>";
}// EndIf got properties
else
echo "<p>Check didn't.</p>";
imap_close($mbox);
}// EndElse opened mailbox
$mbox = imap_open('{imap.gmail.com:993}','example@gmail.com','***',0,1);
<snip>
its my main email account, I do know that gmail needs ssl on which might be causing trouble , what parameters do the 0 and 1 control
[edited by: eelixduppy at 2:34 am (utc) on April 9, 2008]
[edit reason] removed link [/edit]