In messing around with the php imap functions I found that the imap_header and imap_headerinfo functions cause the whole page not to load as soon as they were called. I am able to successfully get the body of a message but not the header. I also found the same behavior when I tried to use pofHQ-wapMAIL program. Does anyone have any suggestions?<br /><br />Thanks<!--content-->
I never used the IMAP stuff in PHP so I'm not sure what it could be but I suggest you run the script on your computer and use a sniffer to capture analyze the IMAP traffic between your computer and the server.<!--content-->
Welcome to the forums jpepper! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /><!--content-->
Welcome to the forums, jpepper! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /> <br /><br />I don't really know anything about PHP's <a href="http://www.php.net/manual/en/ref.imap.php" target="_blank">IMAP functions</a>, but I did find the following in the PHP documentation (and comments):<br /><br />1) imap_header() is an alias of imap_headerinfo() - they are the same function.<br /><br />2) One comment noted that some IMAP servers don't support imap_headerinfo(), and recommended using imap_fetch_overview instead.<br /><br />3) One comment noted that calling imap_headerinfo() after calling imap_body() didn't work for them - they had to change their script to call imap_headerinfo() before imap_body().<br /><br />Beyond that, I think you'd need to post what code you're using and what error you're seeing (if any), and maybe someone here can figure out why it does not work.<!--content-->
Welcome to the forums jpepper <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid="" border="0" alt="biggrin.gif" /><!--content-->
Sorry, I missed this part:<br /><br />Welcome to the forums, jpepper! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/cool.gif" style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" /><!--content-->
Welcome to the forums!<!--content-->
Welcome to the forum, jpepper. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
Thanks all. Good to be here.<br /><br />I found that<i> imap_fetch_overview </i>had the same problem as <i>imap_header_info</i>. It crashed the page. I did however find that<i> imap_fetchheader </i>was able to get the raw header. I then hacked together a <i>my_imap_header</i> to fetch the header and parse it. That seems to work, but you loose all the Unseen and Recent information about the email. I will try all this from a different box to see if it is the imap servers issue or something about the php compilation we are using.<br /><br />Thanks again<br />jpepper<!--content-->
I never used the IMAP stuff in PHP so I'm not sure what it could be but I suggest you run the script on your computer and use a sniffer to capture analyze the IMAP traffic between your computer and the server.<!--content-->
Welcome to the forums jpepper! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /><!--content-->
Welcome to the forums, jpepper! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /> <br /><br />I don't really know anything about PHP's <a href="http://www.php.net/manual/en/ref.imap.php" target="_blank">IMAP functions</a>, but I did find the following in the PHP documentation (and comments):<br /><br />1) imap_header() is an alias of imap_headerinfo() - they are the same function.<br /><br />2) One comment noted that some IMAP servers don't support imap_headerinfo(), and recommended using imap_fetch_overview instead.<br /><br />3) One comment noted that calling imap_headerinfo() after calling imap_body() didn't work for them - they had to change their script to call imap_headerinfo() before imap_body().<br /><br />Beyond that, I think you'd need to post what code you're using and what error you're seeing (if any), and maybe someone here can figure out why it does not work.<!--content-->
Welcome to the forums jpepper <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid="" border="0" alt="biggrin.gif" /><!--content-->
Sorry, I missed this part:<br /><br />Welcome to the forums, jpepper! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/cool.gif" style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" /><!--content-->
Welcome to the forums!<!--content-->
Welcome to the forum, jpepper. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
Thanks all. Good to be here.<br /><br />I found that<i> imap_fetch_overview </i>had the same problem as <i>imap_header_info</i>. It crashed the page. I did however find that<i> imap_fetchheader </i>was able to get the raw header. I then hacked together a <i>my_imap_header</i> to fetch the header and parse it. That seems to work, but you loose all the Unseen and Recent information about the email. I will try all this from a different box to see if it is the imap servers issue or something about the php compilation we are using.<br /><br />Thanks again<br />jpepper<!--content-->