Community Documentation

Mime Mail

Last updated July 24, 2012. Created by jerdavis on August 6, 2008.
Edited by authentictech, sgabe, peterx. Log in to edit this page.

This is a Mime Mail component module (for use by other modules).

  • It permits users to receive HTML email and can be used by other modules. The mail functionality accepts an HTML message body, mime-endcodes it and sends it.
  • If the HTML has embedded graphics, these graphics are MIME-encoded and included as a message attachment.
  • Adopts your site's style by automatically including your theme's stylesheet files in a themeable HTML message format
  • If the recipient's preference is available and they prefer plaintext, the HTML will be converted to plain text and sent as-is. Otherwise, the email will be sent in themeable HTML with a plaintext alternative.

This module is required by the Send module and can be used by Simplenews for HTML email. E-publish uses Send which then uses Mime Mail.

Mime Mail picks up your standard CSS and applies the CSS in a way that works in all email clients which accept HTML email. Mime Mail looks for print.css to override the standard formatting, usually to remove background colours and images that create problems when printing or viewing on handheld devices. Mime Mail also looks for a mail.css file to provide special formatting separate to the print version.

There are some issues open in the alpha version of Mime Mail for Drupal 6. If you use subthemes or multiple themes, you might end up with a different theme to what you expect.

Page status

Needs updating

Log in to edit this page

About this page

Drupal version
Drupal 6.x
Audience
Designers/themers, Programmers

Site Building Guide

Drupal’s online documentation is © 2000-2013 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.
nobody click here