From 324b6fb75c94e406dcda74489bbd8b6394ed8268 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Fri, 4 Oct 2013 18:33:33 +0000
Subject: [PATCH] Use base64 encoding for text version of emails

Some mail clients and mail brokers do not properly handle quoted-printable
encoding, used in osTicket outgoing emails. Oddly, the end mail clients
render the email with trailing equal signs (=) at the end of every line,
where it was added due to QP encoding.

References:
http://www.osticket.com/forums/forum/osticket-1-7-latest-release/troubleshooting-and-problems-aa/10708-solved-microsoft-exchange-internet-mail-lines-end-with
RFC 2045 section 6.7, http://www.ietf.org/rfc/rfc2045.txt
---
 include/class.mailer.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class.mailer.php b/include/class.mailer.php
index d291effb2..adb0fd0d1 100644
--- a/include/class.mailer.php
+++ b/include/class.mailer.php
@@ -150,7 +150,7 @@ class Mailer {
         //Desired encodings...
         $encodings=array(
                 'head_encoding' => 'quoted-printable',
-                'text_encoding' => 'quoted-printable',
+                'text_encoding' => 'base64',
                 'html_encoding' => 'base64',
                 'html_charset'  => 'utf-8',
                 'text_charset'  => 'utf-8',
-- 
GitLab