Bugzilla – Attachment 117943 Details for
Bug 27884
Add HTML mail support for patron emailer script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 123123: Add html support for report mails
Bug-123123-Add-html-support-for-report-mails.patch (text/plain), 1.43 KB, created by
David Gustafsson
on 2021-03-08 18:00:43 UTC
(
hide
)
Description:
Bug 123123: Add html support for report mails
Filename:
MIME Type:
Creator:
David Gustafsson
Created:
2021-03-08 18:00:43 UTC
Size:
1.43 KB
patch
obsolete
>From 496dfade3642e99ab46f9bb1cbc4b4ea54ce6dba Mon Sep 17 00:00:00 2001 >From: David Gustafsson <glasklas@gmail.com> >Date: Thu, 4 Mar 2021 17:54:22 +0100 >Subject: [PATCH] Bug 123123: Add html support for report mails > >To test: >1) Create a new notice, for example with Koha module "Patrons", > name/code TEST and message body "<strong>testing<strong>". >2) Create a new sql report, the query could be someting like: > SELECT "<number>" as `borrowernumber`, "to@example.com", as `email`, "from@example.com" as `from`; > where "<number>" is a valid borrowernumber. >3) Run patron_emailer.pl --report=<id> --notice=TEST --module=members -commit > where <id> is the report id. >4) Check the message_queue table that the content_type column has been > set to text/html; charset="UTF-8". >5) Ideally process the message queue and veriy that the sent email is displayed > as rendered html. > >https://bugs.koha-community.org/show_bug.cgi?id=27884 >--- > C4/Reports/Guided.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm >index a76d86ba44..d034ccb1a8 100644 >--- a/C4/Reports/Guided.pm >+++ b/C4/Reports/Guided.pm >@@ -1041,6 +1041,7 @@ sub EmailReport { > message_transport_type => 'email', > }); > $letter = $letter->unblessed; >+ $letter->{'content-type'} = 'text/html; charset="UTF-8"' if $letter->{'is_html'}; > > my $report = Koha::Reports->find( $report_id ); > my $sql = $report->savedsql; >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27884
:
117869
|
117942
|
117943
|
118929
|
124890
|
124891
|
125755
|
125756
|
127184
|
127185