IMAP extension - imap_open in php fails?

I have got a mini php reading my gmails but the first line fails

if (! function_exists(‘imap_open’)) {
echo “IMAP is not configured.”;

How do I enable Imap support in php ???

Thanks so much in advance for any help.

IMAP is not something you can enable with PHP code, the module must be enabled on the server to work and the function should not be blocked. The latter is the case with our hosting.

As to why it was disabled, I don’t know, but the function has been explicitly disabled, so there is probably a security reason behind it.

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.