Customizing email notification templates
Hello,
I am attempting to customize the email notifications. I have found both template directories you mentioned in another post, but it seems I do not have the level of control I was expecting on the Scheduler Service.
What I would like to do is change the order the templates are applied to specific events. For example, the COMMENT sequence seems to be:
CommonHeader.en-GB IssueLink.en-GB IssueDetail.en-GB IssueDescription.en-GB IssueComment.en-GB CommonFooter.en-GB
Is there any way to modify this order?
Also, there does not seen to be a template for the Watcher notification in either MailPlugin or the Scheduler. Can this be added?
Thanks,
David
Edit: The version of Scheduler we're using is 3.7.2 build 2784.
DavidE
· 1 |
|
Monday, October 18, 2010, 8:50:44 PM |
0
|
The only way to change the order is by swapping the contents / file names. |
||||
|
0
|
Ok. I've been experimenting with adding logos, text, etc. to the CommonHeader.en-GB file, and it seems that adding anything besides text causes the parsing of the html/asp to fail, resulting in an entirely blank email being sent out. I can add the same code to the other files ("IssueComment.en-GB", "IssueLink.en-GB", etc) without a problem. I think I can work around this if I have a definitive list of how each of the templates are used for various events. Something like: New Comment: CommonHeader.en-GB + IssueLink.en-GB + IssueDetail.en-GB + IssueDescription.en-GB + IssueComment.en-GB + CommonFooter.en-GB Issue Created: CommonHeader.en-GB + IssueLink.en-GB + IssueDetail.en-GB + IssueDescription.en-GB + CommonFooter.en-GB etc. That way I can add text/images to each file and be sure that it won't be used incorrectly. Thanks, David |
||||
|
0
|
The order is:
|
||||
|
0
|
Thank you for the prompt response! It seems that there are some pretty strict requirements on the files. Some rules that seem to be in place: Every file must contain one table with only 'tr' and 'td' tags. Are there any other rules for content I need to be aware of? Thanks, David |
||||
|
0
|
You should be able to put any HTML in there, trs, divs etc... |
||||
|
0
|
David and I are working together to customize these templates. If we add an <hr> tag to the end of a template, if we put <table><tr><td> in one template file and </td></tr></table> in another, and if we remove the contents of one template without replacing the contents with something (we've been using ) -- in all these instances the engine fails with a substring exception visible in the logs and a blank email is sent. |
||||
|
0
|
The data object has the folliwng fields:
Issue.IssueComments.Length and PreviousIssue.IssueComments.Length Note that the scheduler's source code is available for commercial license holders. |
||||
|