]> 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)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 6 Jun 2014 13:04:25 +0000 (09:04 -0400)
commitcb0baa50adf767fb0ae7bfe5d5a6eaa2863b98d6
treed0ec4356361d734ff402628ec7ca62d9c7c27438
parentc7a342eaf5bd5dc6804473ba53c84f60caea0e17
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>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit eedb9c0e6743aa8739fc01a68145be5a605a7f3e)
misc/cronjobs/runreport.pl