From 19af10df37063230e219a95b4d773c70f2ea3ce0 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 15 Mar 2017 18:09:27 -0700 Subject: [PATCH] Apply the wordwrap() hack for "To" to PHPMailerLite Summary: Fixes T12372. Long-term fix is T12404, this is a bandaid in the interim. See T12372 for additional discussion. Test Plan: Confirmed functional by a user in T12372. Reviewers: chad Reviewed By: chad Maniphest Tasks: T12372 Differential Revision: https://secure.phabricator.com/D17501 --- externals/phpmailer/class.phpmailer-lite.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/externals/phpmailer/class.phpmailer-lite.php b/externals/phpmailer/class.phpmailer-lite.php index c064d6cddd..610de99438 100644 --- a/externals/phpmailer/class.phpmailer-lite.php +++ b/externals/phpmailer/class.phpmailer-lite.php @@ -656,6 +656,10 @@ class PHPMailerLite { $addr_str .= implode(', ', $addresses); $addr_str .= $this->LE; + // NOTE: This is a narrow hack to fix an issue with 1000+ characters of + // recipients, described in T12372. + $addr_str = wordwrap($addr_str, 75, "\n "); + return $addr_str; }