I've created a custom template for my webforms. I've called it webform-mail.tpl.php. On my webform I have it set to send two emails. One email sends to me and the setting is "Default Template" and the other email that gets sent to the customer is set at "Custom Template".

When I fill in the form I get the email with the correct custom template that I created which in webform is set to use "Default Template". The email that is sent to the customer is sent without the template where it's setting in webform is "Custom Template".

Am I doing something wrong that webform is not using my template when set to "Custom Template"?

Comments

DanChadwick’s picture

Status: Active » Fixed

In reading the code it appears that the custom versus default template in the e-mail definition form has nothing to do with your webform-mail-tpl.php file. That file should be used regardless.

When you edit the template in the e-mail form, the template automatically changes to "Custom template". If you change that back to "Default template", some javascript will ask if that's what you want and then replace what you had entered as the custom template with the default template.

At least that how I think it works. I don't use this feature and I haven't worked on the code.

Status: Fixed » Closed (fixed)

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