]> git.evergreen-ils.org Git - working/Evergreen.git/blob - docs/RELEASE_NOTES_NEXT/Administration/Action_Trigger_Email_Headers.adoc
a38fdc43eb2cdd11426ef9e91b6c7a6cd945ba6c
[working/Evergreen.git] / docs / RELEASE_NOTES_NEXT / Administration / Action_Trigger_Email_Headers.adoc
1 Add Date Header to Action Trigger Email/SMS Templates
2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 The Date: header specified in RFC 2822 has been added to the seed data
4 for the example Action Trigger email and SMS templates, but no attempt
5 has been made to automatically modify existing templates. To add this
6 header (and end any "Why are my library emails from 1969/70?" questions
7 you may have heard) make sure the following lines are in all templates
8 that use the SendEmail or SendSMS reactors:
9
10 The first is already in most sample templates, but you may need to add
11 it to the top of any custom templates:
12 `[%- USE date -%]`
13
14 And this line should be inserted into the header block of each template:
15 `Date: [%- date.format(date.now, '%a, %d %b %Y %T -0000', gmt => 1) %]`
16