php - This webpage is not available in imap_header function call -


i have php lines reads email gmail inbox using imap extension functions.

my code :

$mbox = imap_open('{imap.gmail.com:993/imap/ssl/novalidate-cert}', 'myemail@gmail.com', 'mypassword')  or die("can't connect: " . imap_last_error());  $header = @imap_header($mbox, 99) or die (imap_last_error());  print_r($header);  imap_close($mbox); 

when call imap_header number other 99 works well, bu not produce output or error 99. why?

update : message header in email inbox can read imap_fetchheader

the issue 99 linked specific box: me works 99 :-).
if want further investigate cause of error, should post here error produced, :-)


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -