Install

Works with Drupal: 7.x

Using Composer to manage Drupal site dependencies

Downloads

Download tar.gz 17.11 KB
MD5: 6707374ba75562b15c76ba887a0a2dd1
SHA-1: 678b820c7e21f056f404643ba397b59af671862a
SHA-256: 6ee0d4d91249963bf8ac760723b69fbdc982400ccabc7e4c5e68a2f12eb41547
Download zip 20.33 KB
MD5: 485d92b279b712caf1eb262f971c6bc9
SHA-1: 4888a11d27f110fa7b192ea81cd1d5e9cf92f4bf
SHA-256: 1984a107cc8b238085c8cec2a7839017195e449661783d2d5198e53e1c1fb45f

Release notes

Regenerated docs.

Mail MIME

Provides a class for creating MIME messages.

  • NOTE: This module does not send mail.
    If you came here looking for a mail-sending module, try HTML Mail (which can use this module for MIME-handling) or Mime Mail (which comes with its own MIME-handling library).

Mail Mime extends certain PEAR mail-handling classes to provide a drupal-friendly library for creating and parsing MIME messages. Neither Mail Mime nor the original PEAR classes send mail nor do anything useful on their own. They are intended as code libraries to be used by other programs that send or receive mail.

Mail Mime started out as part of HTML Mail. I separated into its own module for two reasons:

  1. The separation helped clarify in my own mind which parts of the mail-sending process require MIME and which do not. The resulting code is simpler and easier to maintain.

  2. It is possible that another mail-sending or mail-reading module may find the Mail Mime library useful.

Requirements

The following files, available from PEAR, must be installed and available somewhere on the include_path.

  • Mail/mime.php
  • Mail/mimeDecode.php
  • Mail/mimePart.php
  • PEAR.php
  • PEAR5.php

  • One way to satisfy the requirements is to run the following command from a Unix root shell prompt:

    pear install -a Mail_Mime

    The -a parameter ensures that dependencies, including Mail/mimeDecode.php and Mail/mimePart.php, are also installed.

  • Another way is to install and enable the Include module before enabling the Mail MIME module.

Installation

  1. Download and install as usual.

  2. When enabled, Mail Mime will

    • Auto-detect whether the required files are present.

    • If any files are missing, and the Include module is available, Mail Mime will use Include to auto-download and enable the missing files.

    • If all of the above fails, Mail Mime will disable itself and print a warning to both the screen and the error log.

Created by: pillarsdotnet
Created on: 10 Jun 2011 at 20:33 UTC
Last updated: 30 May 2014 at 07:48 UTC
Bug fixes
Unsupported

Other releases