Community Documentation

Configuring PHP to support Mailhandler (1.x, 2.x)

Last updated April 30, 2011. Created by greggles on August 27, 2008.
Edited by Dane Powell. Log in to edit this page.

Mailhandler module requires extensions to PHP in order to interface with different mail servers.

If you don't have these extension installed you may get errors like

Fatal error: Call to undefined function imap_open()

IMAP on Debian/Ubuntu

If you use a Debian/Ubuntu system then you will need the php5-imap extension. To install this and get Apache to recognize it requires two steps:

sudo apt-get install php5-imap
sudo /etc/init.d/apache2 restart

This installs the PHP module and should configure it and then restarts Apache. Note that your website will go down while you restart but it should only take about 30 seconds for it to come back.

About this page

Drupal version
Drupal 6.x, Drupal 7.x

Site Building Guide

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.