Evergreen should allow for HTML formatted action trigger emails
Bug #1532236 reported by
Blake GH
This bug affects 10 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
It would be great if you could formulate your own email headers for action triggers in the action trigger template. If you so desired. If you do not include the Content-Type in the email header, then Evergreen can go ahead and make one.
Changed in evergreen: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Changed in evergreen: | |
milestone: | none → 2.next |
tags: | added: actiontrigger |
tags: | added: pullrequest |
tags: |
added: needsreleasenote removed: pullrequest |
tags: | added: pullrequest |
tags: |
added: signedoff removed: signoff |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Here is an example of an email we would like to have sent in HTML if the mail client supports it. If not, it should show the plain text version.
[%- USE date -%] recipient_ email || user.email %] 0.circ_ lib.name %] <[% helpers. get_org_ setting( target. 0.circ_ lib.id, 'org.bounced_ emails' ) || lib.email || params.sender_email || default_sender %]> alternative; boundary= separatehere
[%- user = target.0.usr -%]
To: [%- params.
From: [%- target.
MIME-Version: 1.0
Content-Type: multipart/
Subject: Overdue Notification
Dear [% user.first_ given_name %] [% user.family_name %],
Did you forget? Currently the following items are overdue. Checked out items may be renewed one time if no other patron is requesting the item. Renew by phone at {removed} or online from the library's website: {removed}.
[% FOR circ IN target %] copy.call_ number. record. simple_ record. title %] copy.barcode %] helpers. format_ date(circ. due_date) , '%Y-%m-%d') %] get_copy_ price(circ. target_ copy) %]
Title: [% circ.target_
Barcode: [% circ.target_
Due: [% date.format(
Item Cost: [% helpers.
[% END %]
{removed}
p: {removed}
e: {removed}
Library Hours: Monday - Thursday: 9 a.m. - 7 p.m. | Friday - Saturday: 10 a.m. - 5 p.m. | Sunday 1 p.m. - 5 p.m. (Sept. - May)
Login in to http://{removed} /eg/opac/ myopac/ main?locg= 2 to renew your items or place items on hold.
Please note: {removed} operates on the principle that our patrons can be trusted to return materials in a timely manner. Currently, fines are not charged for overdue materials. However, items are considered lost after 45 days overdue. Lost items are billed at the item's original cost plus a $10 non-refundable processing fee. charset= utf-8
--separatehere
Content-Type: text/html;
<p>Dear [% user.first_ given_name %] [% user.family_name %],</p> copy.call_ number. record. simple_ record. title %] copy.barcode %] helpers. format_ date(circ. due_date) , '%Y-%m-%d') %] get_copy_ price(circ. target_ copy) %]
<p>
Did you forget? Currently the following items are overdue. Checked out items may be renewed one time if no other patron is requesting the item. Renew by phone at {removed} or online from the library's website: {removed}.
</p>
<pre>
[% FOR circ IN target %]
Title: [% circ.target_
Barcode: [% circ.target_
Due: [% date.format(
Item Cost: [% helpers.
[% END %]
</pre>
{removed}<br>
p: {removed}<br>
e: {removed}<br>
Library Hours: Monday - Thursday: 9 a.m. - 7 p.m. | Friday - Saturday: 10 a.m. - 5 p.m. | Sunday 1 p.m. - 5 p.m. (Sept. - May)<br>
<p> /eg/opac/ myopac/ main?locg= 2">My Account</a> to renew your items or place items on hold.
Login in to <a href="http://{removed}
</p>
<p>
Please note: {removed} operates on the principle that our patrons can be trusted to return materials in a timely manner. <i>Currently, fines are not charged for overdue materials.</i> However, items are considered lost after 45 days overdue. Lost items are billed at the item's original cost plus a $10 non-refundable processing fee.</p>
--separatehere--