PHP’s IMAP functions allow you to operate with IMAP protocols such as NNTP, POP3 and local access methods.
If you are getting the error“Fatal error: Call to undefined function imap_open()...” when trying to use the IMAP function, it means that it is not installed in your PHP.
How to install the IMAP function in PHP?
To install the PHP IMAP function on CentOS, simply run the following command in SHELL:
yum install php-imap
To install the PHP IMAP function in Debian, simply run the following command in SHELL:
apt-get install php5-imap
After installation, simply restart the Apache server:
/etc
/init.d/apache2restart