Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
How does Post By Email test to see if PHP IMAP is supported?
Avatar
chris.crabtree
Member
Free Members
sp_UserOfflineSmall Offline
Jan 18, 2013 - 4:42 pm

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";
}

 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 18, 2013 - 7:09 pm

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?

Avatar
chris.crabtree
Member
Free Members
sp_UserOfflineSmall Offline
Jan 19, 2013 - 10:31 am

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!

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 19, 2013 - 10:46 am

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...

andy-signature.png
YELLOW
SWORDFISH
Avatar
chris.crabtree
Member
Free Members
sp_UserOfflineSmall Offline
Jan 21, 2013 - 3:40 pm

Simple mistake on host's part: they had my server marked as IMAP-compiled, but it just wasn't. Message now shows that IMAP is available and I have it successfully testing now!

 

Thanks!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 21, 2013 - 4:49 pm

Excellent

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625