Install

Works with Drupal: 7.x

Using dev releases is not recommended, except for testing.

Using Composer to manage Drupal site dependencies

Downloads

Download htmlmail-7.x-2.x-dev.tar.gztar.gz 28.24 KB
MD5: 28a88f6fac581f8e96b08da35d0eb528
SHA-1: 9410c04f0d0ea87385e9988c8635adc3060264e0
SHA-256: 640cce6b679084f6dc2e772c2f4e876928369710c0392573978643d69be189c2
Download htmlmail-7.x-2.x-dev.zipzip 41.52 KB
MD5: c58c57ff7bab9bd5e7b6e1ac1ab27028
SHA-1: 0fe9fb2fef4a834965f1c9994aa7d556682e62b4
SHA-256: 344a68d80217403cbfc62a63bb319786711a1b36b71231d39ff4e3c327a029f4

Release notes

HTML Mail

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

Requirement

Installation

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.

Configuration

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.

Theming

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.

Troubleshooting

Visit the issue queue for support and feature requests.

Related Modules

Echo

http://drupal.org/project/echo

Emogrifier

http://drupal.org/project/emogrifier

HTML Purifier

http://drupal.org/project/htmlpurifier

htmLawed

http://drupal.org/project/htmlawed

Mail MIME

http://drupal.org/project/mailmime

Mail System

http://drupal.org/project/mailsystem

Pathologic

http://drupal.org/project/pathologic

Transliteration

http://drupal.org/project/transliteration

Documentation

filter.module
D6: http://api.drupal.org/api/drupal/modules--filter--filter.module/6
D7: http://api.drupal.org/api/drupal/modules--filter--filter.module/7

D7: http://api.drupal.org/api/drupal/modules--filter--filter.module/group/st...

Installing contributed modules
D6: http://drupal.org/documentation/install/modules-themes/modules-5-6

D7: http://drupal.org/documentation/install/modules-themes/modules-7

Theming guide

http://drupal.org/documentation/theme

Original Author

Current Maintainer

Created by: pillarsdotnet
Created on: 26 Mar 2011 at 04:46 UTC
Last updated: 18 Aug 2020 at 19:26 UTC
Bug fixes
New features

Other releases