I have a fairly complex email form plugin template that I'm using to send emails of task lists to different groups of people. The tasks change based on who the email is going to. I like reusing my code so I've created a template for each group that sets the group name and then calls includes for the rest of the code, but that requires a separate template for each group just for one small line of code.
I was wondering if I could set the variable in the plugin screen somewhere... for example, 1st instance of email plugin sends HR an email with generic template, $groupname = HR. 2nd instance going to IT uses same template but sets $groupname to IT (for use in that template).
I was wondering if I could set the variable in the plugin screen somewhere... for example, 1st instance of email plugin sends HR an email with generic template, $groupname = HR. 2nd instance going to IT uses same template but sets $groupname to IT (for use in that template).