As a long project allows to modify any mail header, for now:

  • Limit the allowed domains for the sender e-mail address used on any e-mail sent through Drupal.
  • 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.

HTML mail

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

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

Downloads

Version Downloads Date Links
7.x-1.x-dev tar.gz (8.97 KB) | zip (10.09 KB) 2012-Apr-04 Notes
6.x-1.x-dev tar.gz (8.22 KB) | zip (9 KB) 2012-Apr-04 Notes

Project Information


Maintainers for Mail Headers

Issues for Mail Headers

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
nobody click here