ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾PHP ±à³Ì£¾PHP 5 Power programming
Team LiB
Previous Section Next Section

A.17. Mail

A.17.1. Mail

Repository: PEAR - License: PHP/BSD - By Chuck Hagenbuch (lead) - Richard Heyes (developer) - Jon Parise (lead)

Class that provides multiple interfaces for sending emails

A.17.1.1 Description

PEAR's Mail:: package defines the interface for implementing mailers under the PEAR hierarchy, and provides supporting functions useful in multiple mailer backends. Currently supported are native PHP mail() function, sendmail and SMTP. This package also provides a RFC 822 Email address list validation utility class.

A.17.2. mailparse

Repository: PECL - License: PHP - By Wez Furlong (lead)

Email message manipulation

A.17.2.1 Description

Mailparse is an extension for parsing and working with email messages. It can deal with rfc822 and rfc2045 (MIME) compliant messages.

A.17.3. Mail_IMAP

Repository: - License: PHP -

Provides a c-client backend for webmail.

A.17.3.1 Description

Mail_IMAP provides a simplified backend for working with the c-client (IMAP) extension. It serves as an OO wrapper for commonly used c-client functions. It provides structure and header parsing as well as body retrieval.

Mail_IMAP provides a simple inbox example that demonstrates its ability to parse and view simple and multipart email messages. Mail_IMAP also provides a connection wizard to determine the correct protocol and port settings for a remote mail server, all you need to provide is a server, a username and a password. Mail_IMAP may be used as a webmail backend or as a component in a mailing list manager. This package requires the c-client extension. To download the latest version of the c-client extension goto: http://www.php.net/imap.

A.17.4. Mail_Mbox

Repository: PEAR - License: LGPL - By Roberto Berto (lead)

Mbox PHP class to Unix MBOX parsing and using.

A.17.4.1 Description

It can split messages inside a Mbox, return the number of messages, return, update or remove an specific message or add a message on the Mbox.

A.17.5. Mail_Mime

Repository: PEAR - License: PHP - By Richard Heyes (lead) - Tomas V.V.Cox (contributor)

Provides classes to create and decode mime messages.

A.17.5.1 Description

Provides classes to deal with creation and manipulation of mime messages:

  • mime.php: Create mime email, with html, attachments, embedded images etc.

  • mimePart.php: Advanced method of creating mime messages.

  • mimeDecode.php - Decodes mime messages to a usable structure.

  • xmail.dtd: An XML DTD to acompany the getXML() method of the decoding class.

  • xmail.xsl: An XSLT stylesheet to transform the output of the getXML() method back to an email

A.17.6. Mail_Queue

Repository: PEAR - License: PHP - By Radek Maciaszek (lead) - Lorenzo Alberton (contributor)

Class for put mails in queue and send them later in background.

A.17.6.1 Description

Class to handle mail queue managment. Wrapper for PEAR::Mail and PEAR::DB (or PEAR::MDB). It can load, save and send saved mails in background and also backup some mails.

The Mail_Queue class puts mails in a temporary container waiting to be fed to the MTA (Mail Transport Agent) and send them later (eg. every few minutes) by crontab or in other way.

A.17.7. POP3

Repository: - License: PHP -

POP3 Client Library

A.17.7.1 Description

The POP3 extension makes it possible for a PHP script to connect to and interact with a POP3 mail server.

It is based on the PHP streams interface and requires no external library.

A.17.8. vpopmail

Repository: PECL - License: PHP - By James Cox (lead)

Provides functions to interact with vpopmail, a Qmail addon

A.17.8.1 Description

A wrapper to vpopmail, a Qmail addon

    Team LiB
    Previous Section Next Section