Install IMAP extension
suggest changeThe IMAP functions need the IMAP extension. Current Debian and Ubuntu packages are named php-imap. PHP 8.4 removed the extension from php-src; install it from PECL (pecl install imap) or from the distribution package. The commands below are for older releases.
Debian/Ubuntu with PHP 5
sudo apt-get install php5-imap
sudo php5enmod imap
Debian/Ubuntu with PHP 7.0
sudo apt-get install php7.0-imap
YUM based distro
sudo yum install php-imap
Old Homebrew php56 formula
brew reinstall php56 --with-imap
That flag belonged to the php56 formula. Current Homebrew PHP builds do not enable IMAP that way.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents