[wp-trac] [WordPress Trac] #12851: Change $from_name when sending out email with MS

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 5 03:38:23 UTC 2010


#12851: Change $from_name when sending out email with MS
-------------------------+--------------------------------------------------
 Reporter:  bloggus      |       Owner:     
     Type:  enhancement  |      Status:  new
 Priority:  high         |   Milestone:  3.0
Component:  Multisite    |     Version:     
 Severity:  normal       |    Keywords:     
-------------------------+--------------------------------------------------

Comment(by nacin):

 We should attach an MS filter to wp_mail_from_name. Surprised we don't
 already have that. We do have it for the email address itself:

 In ms-default-filters:
 {{{
 add_filter( 'wp_mail_from', 'wordpressmu_wp_mail_from' );
 }}}
 In ms-functions:
 {{{
 function wordpressmu_wp_mail_from( $email ) {
         if ( strpos( $email, 'wordpress@' ) !== false )
                 $email = get_option( 'admin_email' );
         return $email;
 }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12851#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list