Today I had an issue that the HTML mail module was not using the template I configured in the module. After a long search I found out that that another module also used the hook_mail_alter(). This module (http://drupal.org/project/subscriptions) performed the hook after the HTML mail module. It could be this other module used the hook in the wrong way, but setting a higher weight for the HTML mail module fixed the problem.

Maybe it is a good idea to give this module a higher weight by default? In my opinion the template of the HTML mail module is the last thing that should be added to an outgoing e-mail before actually sending it.

Comments

lindsay’s picture

Version: 5.x-1.1 » 6.x-1.3

Hi,

Would this cause the body of the email to be blank?

I'm also using subscriptions and am getting a blank email body. I've changed the weight (from 0 to 1 and then 1 to 2) and still the email body is blank. It doesn't seem like the weight of anything else in my modules table would over ride there (there are a few core type modules that have a higher weight, but that's it). What did you change your weight to?

Thanks.

pillarsdotnet’s picture

Version: 6.x-1.3 » 6.x-1.5
Status: Active » Postponed (maintainer needs more info)

Cleaning up the issue queue. Is this still an issue in the latest version?

pillarsdotnet’s picture

Version: 6.x-1.5 » 6.x-2.3
Status: Postponed (maintainer needs more info) » Closed (fixed)

The 6.x-2.x branch is now stable. I'm therefore closing all open 6.x-1.x issues.

Re-open if there is some reason that 6.x-2.x doesn't work for you.