From 17b3dfbdb985a0ab02e8d1a51c1f96772987732a Mon Sep 17 00:00:00 2001 From: Marcus Bointon Date: Fri, 28 Mar 2025 09:57:00 +0100 Subject: [PATCH] Explain eai --- src/PHPMailer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PHPMailer.php b/src/PHPMailer.php index fbf37b84..13760bf1 100644 --- a/src/PHPMailer.php +++ b/src/PHPMailer.php @@ -1459,8 +1459,10 @@ class PHPMailer * This is the pattern used in the HTML5 spec for validation of 'email' type * form input elements (as above), modified to accept Unicode email addresses. * This is also more lenient than Firefox' html5 spec, in order to make the regex faster. + * 'eai' is an acronym for Email Address Internationalization. * * @see https://html.spec.whatwg.org/#e-mail-state-(type=email) + * @see https://en.wikipedia.org/wiki/International_email */ return (bool) preg_match( '/^[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~\x80-\xff-]+@[a-zA-Z0-9\x80-\xff](?:[a-zA-Z0-9\x80-\xff-]{0,61}' .