From 6467d54259234c79077c4be2533bdbd494fc1907 Mon Sep 17 00:00:00 2001 From: Marcus Bointon Date: Thu, 27 Mar 2025 16:51:31 +0100 Subject: [PATCH] Explain why --- src/PHPMailer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PHPMailer.php b/src/PHPMailer.php index 0c5e9fb1..fbf37b84 100644 --- a/src/PHPMailer.php +++ b/src/PHPMailer.php @@ -1176,6 +1176,8 @@ class PHPMailer self::$validator === 'php' && $this->addressHasUnicodeLocalPart($address) ) { + //The caller has not altered the validator, so assume that they want UTF-8 support + //instead of failing $this->CharSet = self::CHARSET_UTF8; self::$validator = 'eai'; }