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

WordPress Trac noreply at wordpress.org
Fri Dec 5 09:03:11 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 siliconforks):

 If anyone is running WordPress 6.9 and wants to revert to exactly the way
 it behaved in WordPress 6.8, I believe that the following code should
 work:

 {{{#!php
 <?php
 add_action( 'phpmailer_init', static function ( $phpmailer ) {
         $phpmailer->Sender = '';
 } );
 }}}

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


More information about the wp-trac mailing list