From 306ea7022f74db81f20a1709019d6c5d1c932da4 Mon Sep 17 00:00:00 2001 From: Mariusz Krzaczkowski Date: Thu, 2 Oct 2025 11:18:08 +0200 Subject: [PATCH] Update PHPMailer.php --- src/PHPMailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PHPMailer.php b/src/PHPMailer.php index 40c7aa4b..dae7c50a 100644 --- a/src/PHPMailer.php +++ b/src/PHPMailer.php @@ -4607,7 +4607,7 @@ class PHPMailer $cid_domain = '@phpmailer.0'; if (filter_var($this->From, FILTER_VALIDATE_EMAIL)) { //prepend with a character to create valid RFC822 string in order to validate - $cid_domain = substr( $this->From, strpos( $this->From, '@') + 1); + $cid_domain = substr( $this->From, strrpos( $this->From, '@') + 1); } preg_match_all('/(?