To get these functions to work, you have to compile PHP with --with-imap[=DIR], where DIR is the c-client install prefix. From our example above, you would use --with-imap=/usr/local/imap-2000b. This location depends on where you created this directory according to the description above. Windows users may include the php_imap.dll DLL in php.ini.

Nota: Depending on how the c-client was configured, you might also need to add --with-imap-ssl=/path/to/openssl/ and/or --with-kerberos=/path/to/kerberos to the PHP configure line.


The IMAP extension is not thread-safe; it should not be used with ZTS builds.


Le estensioni IMAP, recode e YAZ non possono essere utilizzate assieme poiché condividono i medesimi simboli interni. Nota: Yaz 2.0 e successivi non ha questo problema.

add a note add a note

User Contributed Notes 2 notes

gabi3xz at yahoo dot com
3 years ago
In centos 7
yum install sclo-php70-php-imap or php71, check your of php version installed with yum list *php7*
2 years ago
To install php-imap on Ubuntu18 try

sudo apt install php-imap
sudo phpenmod imap
To Top