I would like to override webform-mail.tpl.php so I can add some custom items such as a logo to every mail being sent out. I followed the instructions in THEMING.txt and copied webform-mail.tpl.php from the module's 'templates' directory to the 'templates' subdirectory in my theme directory.
After reading this issue: http://drupal.org/node/949242 I made sure that the form's email settings were set to default (even changing to custom first, changing back, clicking ok to confirm I want to use the default template) but the custom webform-mail.tpl.php seems to be ignored (I added a string to the custom template to identify which one is being used). I have applied the patch from the issue above but that didn't make a difference either (which I expected but, hey, what doesn't hurt...).
I tried deleting everything from the custom template as well but that didn't make a difference and only resulted in empty emails being sent.
Any ideas what I'm missing here? Thanks!
Comments
Comment #1
RedTop commentedAdditional info:
I encountered this issue and applied the patch: http://drupal.org/node/948212
I cleared cache after changes to webform-mail.tpl.php
Comment #2
adeb commentedDid you manage to fix this RedTop? I'm having the same issue.
Using Webform 6.x-3.4 and Mime Mail 6.x-1.0-alpha6
Comment #3
adeb commentedI fixed the problem, but I am not exactly sure which action did it.
This is what I changed:
Manually set the template field in the database to "default" (drupal database->webform_emails)
Removed the Mime Mail module
Added the Content-Type headers using a template override in template.php:
Comment #4
quicksketchMarking this as fixed, as I can't cause the problem to occur either.
Comment #5
adeb commentedIn my case this issue was the root cause: http://drupal.org/node/787874
The patch will be rolled out in 3.6
quicksketch, thanks for patching!
Comment #7
davidhendriks commentedWhat do I have to do so the webform module will not ignore the webform.mail.tpl.php file in my theme directory?
I tried the patch and the manual database update but the module keeps ignoring my webform.mail.tpl.php file.
Comment #8
quicksketchYou need to reset the template so there are no modifications by the end-user. Edit the e-mail configuration, and change the select list above the template to use "Default template". If a custom template is being used, the theme's template is never called.
Comment #9
quicksketch