Support Forum
Web host says IMAP is compiled in its PHP, but Post By Email settings says it isn't.
When I run the code below on my server, it says IMAP functions are not available (reinforcing the Post By Email Settings message). But I'm not certain this is the best way to check. Thanks!
if (function_exists('imap_open')) {
echo "IMAP functions are available.<br />\n";
} else {
echo "IMAP functions are not available.<br />\n";
}
how would you suggest we check for imap installed? its worked on every install we worked - with and without imap in php... imap_open() is a needed function to open an imap server connection...
have you verified with a phpinfo() that imap shows up?
Visit Cruise Talk Central and Mr Papa's World
I don't have a suggestion as to how to check. I just want to know how Post By Email *is* checking to determine whether to display its message (below) so that I can troubleshoot the right thing.
Your PHP installation does not include the IMAP library which means post-by-email can not try to retrieve attachments from emails and any attachments may cause the post to fail.
phpinfo() is inconclusive to me. On my dev system, it shows IMAP in the "Protocols" output, but yet imap_open() is not an available function. On the host, the phpinfo() output is much shorter and does not include IMAP.
Anyway, I'm just trying to establish what test I can run so that when that test passes, Post By Email will be happy.
Thanks!
Under phpinfo() 'imap' will show up in the protocols (not to be confused with 'imaps') and will also have a small section of it's own if you scroll down looking - or better still perform a search. Once installed and loaded it requires no extra steps for it to function and imap_open() is as good as any function to test for.
Might be worth your while checking your php.ini to see if there are any imap settings in there that I am unfamiliar with...
YELLOW
SWORDFISH
|
1 Guest(s)