Hi,

mimemail-message.tpl.php template works fine, but as soon as I try a key based template eg. mimemail-message--user--password_reset.tpl.php it falls back to forementioned template.

I've tried a number of different filenames for the template but nothing seems to work. I'm trying to use a custom template for user password reset and MimeMail says the key is password-reset.

To create a custom mail template copy the mimemail-message.tpl.php file from the mimemail/theme directory into your default theme's folder. Both general and by-mailkey theming can be performed:

mimemail-message.tpl.php (for all messages)
mimemail-message--[mailkey].tpl.php (for messages with a specific mailkey)

Comments

jozzhart’s picture

Hey Jaybob,

Did you resolve this? I'm having the same problem.

Thanks,
Jozz

JAYBOB’s picture

Haven't tried this since...well, last time.

I've upgraded the core etc. and now is probably a good time try this again to see if time has done it's magic. So, I'll get back with results...

jjchinquist’s picture

The templating engine should not use underscores "_". They should automatically be replaced by hyphens "-".