Closed (fixed)
Project:
HTML Mail
Version:
7.x-2.65
Component:
Code
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2012 at 20:45 UTC
Updated:
20 Jan 2015 at 13:34 UTC
Jump to comment: Most recent
The test emails I send through the htmlmail admin page works fine, applies the theme, and does everything it says it's supposed to do. In mailsystem configuration, I have htmlmail set as the system wide default. Resetting my password generates the same plaintext email message as always though. Is this a bug or a user error on my part?
Thanks!
Comments
Comment #1
derMatze commentedGot the same problem.
Any suggestions..?
Comment #2
derMatze commentedIt seems like deleting all the tpl-files from the htmlmail-module solves this issue...
Am I right?
Comment #3
vegantriathleteHave you added the custom tpl files to your theme and gone to admin/config/system/htmlmail to tell it which theme to search for the tpl files? It sounds like it's probably defaulting (falling back) to the unthemed htmlmail.tpl.php file, which is just printing out the $body variable.
You need to copy htmlmail.tpl.php into your theme. The you need to add something like htmlmail--user_register.tpl.php. Finally, you need to clear cache because the theme registry needs to be updated.
Comment #4
bitcookie commentedI solved this by deleting all the template files in the htmlmail module folder.
I think since the htmlmail module has a htmlmail--user--password_reset.tpl.php and htmlmail--user.tpl.php, it uses them instead of your template declared htmlmail.tpl.php.
If you don't want to hack the module, you'd have to explicitly re-declare those template files in your theme, so adding htmlmail--user--password_reset.tpl.php and htmlmail--user.tpl.php in your theme folder. That's really lame and messy if you want just one template for all your emails though.
Comment #5
jacob.embree commented