]> git.koha-community.org Git - koha.git/commit
Bug 10777: email HTML reports with the proper Content-Type
authorNicholas van Oudtshoorn <vanoudt@gmail.com>
Thu, 22 Aug 2013 08:56:25 +0000 (16:56 +0800)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 27 May 2014 14:55:26 +0000 (16:55 +0200)
commiteedb9c0e6743aa8739fc01a68145be5a605a7f3e
tree410fc24a57329c34a114a02b8c51ce87b0a44568
parente83b77985ed0e6c06747a169ed449ef355edd6e7
Bug 10777: email HTML reports with the proper Content-Type

The misc/cronjobs/runreport.pl allows for sending html reports
via email. The problem is that the Content-Type isn't set to
text/html, which means that the generated html email isn't
displayed properly.

This patch set the Content-Type, and also adds a tiny bit of
CSS to potentially alternate row colours (just to make long
reports a bit easier on the eye!)

TEST PLAN
----------
1. Run the script similar to this:
    ./misc/cronjobs/runreport.pl --format=html --to=YOUREMAIL --subject="Bad Formatting!" REPORTNUMBER
2. Look at the email - the html code should by visible and ugly.
3. apply the patch
4. Run the script again.
5. Look at the email - the data should look nicer now.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 25076dec54f06b6a7938f4a6cda0a80a1d3d51e4)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/cronjobs/runreport.pl