Download & Extend

Mail Template Text by Content Type with Token Support

Project:Printer, e-mail and PDF versions
Version:6.x-1.10
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work

Issue Summary

The following patch allows the definition of default text templates for the 'To', 'Subject' and 'Message' mail fields on a per content-type basis and includes Token support.

We needed this functionality to define e-mail templates for sending customer invoices (a node type) that automatically included certain key information within the email from the node.

AttachmentSize
print-tokens.patch6.89 KB

Comments

#1

Status:active» needs review

Marking this as needs review until we have some feedback. We are using this live without issue.

#2

Status:needs review» needs work

This patch removes a lot of code that could still be used when the token module is not installed. I will try to see if I can merge the existing code with the new stuff.

João