Control and modify any (almost any) mail header. Mail Headers allows you to:

  • Limit the allowed domains for the sender e-mail address used on any e-mail sent through Drupal.
  • Customise almost any mail header with the use of tokens (Version 2.x).
  • Allow HTML to be sent from any module using drupal_mail.

Default FROM address

This module checks every mail being sent and compares the "From" header to a list of allowed domains. If it doesn't match any, the default site mails is used instead.

This is very useful if using an SMTP service like MailJet where you have to validate all domains/addresses before they are allowed through their system, which will block all mail sent using the default Drupal contact form, which uses the email field on the form as the From address.

For the geeky ones, what we change is the "From" header in $message["headers"]["From"] and set the "Reply-To" as the original from.

Customise (almost) any Mail Header (Version 2.x)

Integrated with tokens, this module allows you to customise the headers from the mails sent by Drupal, with any value you feel like using! Plus it integrates with tokens, which gives you even more flexibility.

HTML mail

We also implement our own MailSystem class which overrides the format() method allowing html mails to be sent.

The module assumes that if you enable it, is because you want to use our class. There is currently no way to avoid this behaviour.

Sponsor

This module is sponsored by SeeD EM.

Project information

Releases