From bugzilla-daemon@bugs.koha-community.org Thu Aug 22 09:33:30 2013 From: bugzilla-daemon@bugs.koha-community.org To: koha-bugs@lists.koha-community.org Subject: [Koha-bugs] [Bug 1993] Task Scheduler Needs Re-write Date: Thu, 22 Aug 2013 07:30:00 +0000 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4811830451557269470==" --===============4811830451557269470== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3D1993 Nicholas van Oudtshoorn changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vanoudt@gmail.com --- Comment #38 from Nicholas van Oudtshoorn --- Hopefully this is the right bug to write about this in. Just noticed that runreport.pl (which I'm calling manually from a cron job), whilst allowing for a format of html, doesn't set the "Content-Type" on such emails to "text/html= ". A simple patch replaces: if ($email){ my %mail =3D ( To =3D> $to, From =3D> $from, Subject =3D> encode('utf8', $subject ), Message =3D> encode('utf8', $message ) ); sendmail(%mail) or carp 'mail not sent:' . $Mail::Sendmail::error; } else { print $message; } with if ($email){ my %mail; if ($format eq 'html') { $message =3D "$message"; %mail =3D ( To =3D> $to, From =3D> $from, 'Content-Type' =3D> 'text/html', Subject =3D> encode('utf8', $subject ), Message =3D> encode('utf8', $message ) ); } else { %mail =3D ( To =3D> $to, From =3D> $from, Subject =3D> encode('utf8', $subject ), Message =3D> encode('utf8', $message ) ); } sendmail(%mail) or carp 'mail not sent:' . $Mail::Sendmail::error; } else { print $message; } --=20 You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes. --===============4811830451557269470==--