[wp-trac] [WordPress Trac] #49661: mails, Howdy, wp_mail() and filters spreading
WordPress Trac
noreply at wordpress.org
Fri Sep 19 09:13:36 UTC 2025
#49661: mails, Howdy, wp_mail() and filters spreading
-------------------------------------------------+-------------------------
Reporter: arena | Owner: SirLouen
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Future
| Release
Component: Mail | Version: 1.5.1.2
Severity: normal | Resolution:
Keywords: good-first-bug has-test-info has- | Focuses:
patch needs-testing has-unit-tests |
-------------------------------------------------+-------------------------
Comment (by mosescursor):
Bug Reproduction Issue “45516”
== Reproduction Report
=== Description
This report validates whether the issue can be reproduced. I have failed
to reproduce the bug and so couldn't apply patch
=== Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.29
- Server: nginx/1.29.1
- Database: mysqli (Server: 8.4.6 / Client: mysqlnd 8.2.29)
- Browser: Chrome 140.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.3
- MU Plugins:
* test-mail.php
- Plugins:
* Test Reports 1.2.0
* WPForms Lite 1.9.7.3
* WP Mail SMTP 4.6.0
=== Actual Results
1. ❌ Error condition does not re-occur (not - reproduced).
=== Additional Notes
- I set up Docker
- Installed WordPress trunk using the wordpress-develop environment
(Docker).
- Added an MU Plugin to send test emails with MailPit
- Installed and activated the WP Mail SMTP plugin.
- Configured SMTP with Mailpit (mailpit:1025).
- Sent test emails from the WP Mail SMTP tool.
- Verified messages in Mailpit’s web UI (http://localhost:8025).
=== Supplemental Artifacts
Plugin Code: This is the code I used in the Plugin (test-mail.php)
{{{
<?php
add_action('init', function() {
if (isset($_GET['sendmail'])) {
$to = 'you at example.com';
$subject = 'Test Email';
$message = 'Testing reply-to header bug.';
$headers = [
'Reply-To: "test2 at gmail.com" <test2 at gmail.com>'
];
wp_mail($to, $subject, $message, $headers);
echo "Mail sent (check headers).";
exit;
}
});
}}}
Received Email headers for test email
{{{
From WordPress Develop <test at example.com>
To <you at example.com>
Reply-To "test2 at gmail.com" <test2 at gmail.com>
Subject Test Email
Date Fri, 19 Sep 2025, 11:17 am (620 B)
Tags
Add tags...
}}}
Email from Blog Post comment
{{{
From WordPress Develop <test at example.com>
To <test at example.com>
Subject [WordPress Develop] Please moderate: "Hello world!"
Date Fri, 19 Sep 2025, 11:38 am (1.2 kB)
Tags
Add tags...
Text
Headers
Raw
Link Check
A new comment on the post "Hello world!" is waiting for your approval
http://localhost:8889/?p=1
Author: Moses Cursor (IP address: 140.82.121.6,
lb-140-82-121-6-fra.github.com)
Email: testing at email.com
URL: https://email.com
Comment:
Looks good
Approve it: http://localhost:8889/wp-admin/comment.php?action=approve&c=2
#wpbody-content
Trash it: http://localhost:8889/wp-admin/comment.php?action=trash&c=2
#wpbody-content
Spam it: http://localhost:8889/wp-admin/comment.php?action=spam&c=2
#wpbody-content
Currently 1 comment is waiting for approval. Please visit the moderation
panel:
http://localhost:8889/wp-admin/edit-comments.php?comment_status=moderated
#wpbody-content
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49661#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list