The Mime Mail module gives Drupal core and other Drupal modules the ability to send HTML email messages. This is an all-Drupal solution that does not require external third-party libraries.
Features include:
- Sends multipart messages in MIME-format.
- Plain text version of the HTML body may be automatically generated, or an alternative plain text body may be used if desired.
- Provides a simple API for adding attachments to email.
- If the HTML has embedded graphics, these graphics are MIME-encoded and included as message attachments.
- Adopts your site's style by automatically including your theme's stylesheet files in a themeable HTML message format.
- Allows users to select a preference for plaintext or HTML email. 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.
- Allows you to theme messages with a specific mailkey.
- Converts CSS styles into inline style attributes.
- Provides Rules actions to send HTML email with embedded images and attachments.
Note that there are some serious limitations you need to take into consideration when creating email layouts, see the Email Standard Project for more information.
Requirements
Requires the Mail System module.
Quick start
Follow the instructions at https://www.drupal.org/docs/contributed-modules/mime-mail
Credits
This project is based on work efforts by Robert Castelo, Gerhard Killesreiter, Allie Micka and Gabor Seljan.
Project information
- Module categories: Integrations
- 70,844 sites report using this module
- Created by Allie Micka on , updated
- Drupal 10 is here!
This module supports Drupal 10 and is being tested against Drupal 10 on a weekly basis. See https://www.drupal.org/node/37911/qa for the most recent test results.
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
The constructor for core Drupal PhpMail was changed in Drupal 9.4+ and Drupal 10
Development version: 8.x-1.x-dev updated 25 Sep 2023 at 05:56 UTC
PHP 8.0 and 8.1 compatibility
Development version: 7.x-1.x-dev updated 6 Dec 2021 at 03:24 UTC