Mail_IMAP Installation

Requirements

Mail_IMAP requires two PEAR packages and one PHP extension.

  • Mail_IMAP requires the c-client library (the imap extension) to connect to and interact with mail servers. For Windows the c-client library is included in the zip distribution of PHP, and is included as a DLL, see php.ini for installation instructions. For Linux and Linux-esque operating systems, you must download and compile c-client, and then compile PHP with c-client enabled, see the imap extension documentation for more information.
  • The PEAR Net_URL package is required if a URI is used to connect. A URI is required to connect using Mail_IMAP::connect, otherwise an already formed imap resource stream (created by calling imap_open) may be passed to the __constructor.
  • Mail_IMAP also requires PEAR_ErrorStack, which is distributed with the latest PEAR release as part of PEAR itself.

Installing Mail_IMAP

Mail_IMAP is designed to be installed using the PEAR installer. If Mail_IMAP is not installed using the PEAR interface, inheriting classes may not function properly. Mail_IMAP can be installed without the PEAR installer by replicating the directory structure used in the tarball, e.g. IMAPv2.php goes in the 'Mail' directory, which is in the PEAR base-install directory, ManageMB.php resides in Mail/IMAPv2/ManageMB/ManageMB.php and Debug.php resides at Mail/IMAPv2/Debug/Debug.php.

Execution time: 0.05 seconds