Download htmlmail-7.x-2.x-dev.tar.gztar.gz 29.47 KB
MD5: afc4ec7f593d829572e7d943e97fec27
SHA-1: 44cf3a3b0f7d49ee21b9095d0e7faece8d6ef04d
SHA-256: 8d7cb3a7d95626de16344f434ea8ba6f31492769b613fb9b62154abb8423743f
Download htmlmail-7.x-2.x-dev.zipzip 40.88 KB
MD5: 400cf11b6e7a5fb92e3687512c6a426e
SHA-1: 58ef987d2dce03cffdc4c60bef6363594fb4d253
SHA-256: 2232dd7f8c612793c0b72f548d052ae240d1d9cf6e5f26d3769c426107c7cc6b

Release info

Created by: pillarsdotnet
Created on: March 26, 2011 - 04:46
Last updated: February 27, 2016 - 20:43
Core compatibility: 7.x
Release type: New features, Bug fixes

Release notes


Lets you theme your outgoing messages the same way you theme the rest of your website.



The following additional modules, while not required, are highly recommended:

  • Echo
    Wraps your messages in a drupal theme. Now you can "brand" your messages with the same logo, header, fonts, and styles as your website.
  • Emogrifier
    Converts stylesheets to inline style rules, for consistent display on mobile devices and webmail.
  • Mail MIME
    Provides a text/plain alternative to text/html emails, and automatically converts image references to inline image attachments.
  • Pathologic
    Converts urls from relative to absolute, so clickable links in your email messages work as intended.
  • Transliteration

    Converts non-ASCII characters to their US-ASCII equivalents, such as from Microsoft "smart-quotes" to regular quotes.

    Also available as a patch.


Visit the Mail System settings page at admin/config/system/mailsystem to select which parts of Drupal will use HTML Mail instead of the default mail system.

Visit the HTML Mail settings page at admin/config/system/htmlmail to select a theme and post-filter for your messages.


The email message text goes through three transformations before sending:

  1. Template File

    A template file is applied to your message header, subject, and body text. The default template is the included htmlmail.tpl.php file. You may copy this file to your email theme directory (selected below), and use it to customize the contents and formatting of your messages. The comments within that file contain complete documentation on its usage.

  2. Theming

    You may choose a theme that will hold your templates from Step 1 above. If the Echo module.) is installed, this theme will also be used to wrap your templated text in a webpage. You use any one of over 800 themes to style your messages, or create your own for even more power and flexibility.

  3. Post-filtering

    You may choose a text format to be used for filtering email messages after theming. This allows you to use any combination of over 200 filter modules to make final changes to your message before sending.

    Here is a recommended configuration:

    • Emogrifier Converts stylesheets to inline style rules for consistent display on mobile devices and webmail.

    • Transliteration Converts non-ASCII text to US-ASCII equivalents. This helps prevent Microsoft "smart-quotes" from appearing as question-marks in Mozilla Thunderbird.

    • Pathologic Converts relative URLS to absolute URLS so that clickable links in your message will work as intended.


Visit the issue queue for support and feature requests.

Related Modules



HTML Purifier



Mail System






Installing contributed modules


Theming guide

Original Author

Current Maintainer


The selected release is the release that will be used for automated testing. Optional projects are only used for testing.



No optional projects