Advertising sustains the DA. Ads are hidden for members. Join today

Contributed module documentation

Mime Mail

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.
  • Allows you to theme messages with a specific mailkey.
  • Converts CSS styles into inline style attributes.
  • Provides simple system actions and Rules actions to send HTML email with embedded images and attachments.

Quick Start

Getting started with Mime Mail; a few easy steps.

How email works in Drupal

Details that will make your life easier.

Where does Mime Mail fit in?

The role played by Mime Mail is to format email messages sent by Drupal.

Styling core Drupal system messages

Drupal core sends out a lot of different plain text messages - here's how to change them into HTML message.

Configuring per-user email preferences

Respect your users by allowing them to opt-out of HTML mail.

Theming email sent by Mime Mail

Describes how to use Twig templates to make your email appear as you want.

Testing and Troubleshooting

How to test to see if Mime Mail is working, and steps to take if it is not.

For developers

Information about how to integrate with Mime Mail from your own module.

Guide maintainers

TR's picture