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

derMatze’s picture

Got the same problem.
Any suggestions..?

derMatze’s picture

It seems like deleting all the tpl-files from the htmlmail-module solves this issue...
Am I right?

vegantriathlete’s picture

Category: bug » support

Have 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.

bitcookie’s picture

I 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.

jacob.embree’s picture

Issue summary: View changes
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.