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
Project Information
- Maintenance status: Actively maintained
- Development status: Maintenance fixes only
- Reported installs: 21 sites currently report using this module. View usage statistics.
- Downloads: 117
- Last modified: April 30, 2012