[wp-trac] [WordPress Trac] #49687: wp_mail() - Why is no envelope sender defined?

WordPress Trac noreply at wordpress.org
Fri Dec 5 12:48:00 UTC 2025


#49687: wp_mail() - Why is no envelope sender defined?
--------------------------------------------------+-----------------------
 Reporter:  vbbp                                  |       Owner:  SirLouen
     Type:  enhancement                           |      Status:  closed
 Priority:  normal                                |   Milestone:  6.9
Component:  Mail                                  |     Version:  5.4
 Severity:  major                                 |  Resolution:  fixed
 Keywords:  has-test-info has-patch has-dev-note  |     Focuses:
--------------------------------------------------+-----------------------

Comment (by SirLouen):

 Replying to [comment:56 jamieburchell]:
 > So we can assume that this configuration directive would work if using
 PHPMailer.

 There is something weird here, because the absence of the `Sender` doesn't
 change that much. I tested back in the day thoroughly with a ton of
 different live servers with and without the `Sender` address and I could
 not see any real changes.

 https://core.trac.wordpress.org/ticket/49687?replyto=56#comment:26

 I'm debugging this further, because I have a hunch that there is something
 problematic on the PHPMailer's side and that `sendmail_from` could be
 related (not certain though). If you say it's not changing anything at
 all, there is something unexpected here.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49687#comment:57>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list