[Koha-bugs] [Bug 27884] Add html mail support for email report

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 15 15:33:08 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27884

David Gustafsson <glasklas at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #118929|0                           |1
        is obsolete|                            |

--- Comment #8 from David Gustafsson <glasklas at gmail.com> ---
Created attachment 124890
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124890&action=edit
Bug 27884: 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 at example.com", as `email`,
"from at 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.
6) Run tests in t/db_dependent/Reports/Guided.t

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list