[wp-trac] [WordPress Trac] #23243: wp_mail() not working with "Name <email>" format in buggy PHP versions on Windows
WordPress Trac
noreply at wordpress.org
Thu Aug 7 11:03:01 UTC 2025
#23243: wp_mail() not working with "Name <email>" format in buggy PHP versions on
Windows
--------------------------+-------------------------
Reporter: bbosh | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Mail | Version: 3.5
Severity: minor | Resolution: worksforme
Keywords: | Focuses:
--------------------------+-------------------------
Changes (by SirLouen):
* keywords: needs-patch =>
* status: new => closed
* resolution: => worksforme
Comment:
== Reproduction Report
=== Description
❌ This report can't validate that the issue can be reproduced.
=== Environment
- WordPress: 6.8.2
- PHP: 8.2.18
- Server: Apache/2.4.59 (Win64) OpenSSL/3.1.5
- Database: mysqli (Server: 11.8.1-MariaDB-log / Client: mysqlnd 8.2.18)
- Browser: Chrome 138.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins:
* Testing Dolly 1.0.0
* Test Reports 1.2.0
=== Testing Instructions
1. Enable a Windows web server with mail service
2. Add `wp_mail("Name <email at ext.com>", "Test 2", "Test 2");` where this
could be executed
3. 👌Email is received as expected (check supplemental artifacts)
=== Actual Results
1. ❌ Error condition is not occurring
=== Additional Notes
- As @cbutlerjr has suggested, given that 5.2 is no longer supported, I'm
testing with a supported version just to confirm if this is currently
working under a Windows PHP-based system.
- For this reason, it is time to close this ticket as `worksforme`
=== Supplemental Artifacts
{{{
Return-Path: <test at example.com>
Received: from testwordpress.test (unknown [172.20.0.1])
by 144d19eeeff3 (Mailpit) with SMTP
for <email at ext.com>; Thu, 7 Aug 2025 10:59:20 +0000 (UTC)
Date: Thu, 7 Aug 2025 10:59:20 +0000
To: Name <email at ext.com>
From: test <test at example.com>
Subject: Test 2
Message-ID:
<i1cFGSEO5Ruo7DjhxX93tIVBBa7D5SYsGbIbOu2ULA at testwordpress.test>
X-Mailer: PHPMailer 6.9.3 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Test 2
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23243#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list