Install

Using Composer to manage Drupal site dependencies

Alternative installation files

Download mailmime-8.x-2.16.tar.gztar.gz 18.78 KB
MD5: 4336f8278a471011ccff74fca0e01b44
SHA-1: 13533ad828c567bdb4902fe7a3dbfcd5ce2b1418
SHA-256: f1c3973332aa6629699207761022dac62130bcbcfdf836b5080d0e8d892f7164
Download mailmime-8.x-2.16.zipzip 21.98 KB
MD5: d60169681e277c56ed3513152e32398b
SHA-1: 10e6aa9018316dfb63704014deb458dd007df5d9
SHA-256: c5998b5c1b7ba8652a7faea22a4b56871acf88c7dc0eb3e1eb0a2f76e6f49511

Release notes

Fixes:

#1518322: addAttachment method: error in the $location variable name

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 Apr 2012 at 18:41 UTC
Last updated: 10 Apr 2012 at 18:45 UTC
Bug fixes

Other releases