[wp-trac] [WordPress Trac] #6829: FromName causing emails not to send using Windows

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 23 17:57:26 GMT 2008


#6829: FromName causing emails not to send using Windows
-----------------------+----------------------------------------------------
 Reporter:  mrtwice99  |       Owner:  anonymous
     Type:  defect     |      Status:  new      
 Priority:  normal     |   Milestone:  2.5.1    
Component:  General    |     Version:  2.5      
 Severity:  normal     |    Keywords:  email    
-----------------------+----------------------------------------------------
 I have a fresh install of 2.5, but was not getting any user/password
 related emails.  I tracked this down to line 352 of pluggable.php which
 sets the FromName on the $phpmailer object.  When this value is set, it
 causes email to be lost.  When this value is set to null, then the email
 sends correctly.

 php.ini is setup to use a remote SMTP server:

 {{{
 [mail function]
 ; For Win32 only.
 SMTP = 127.0.0.1
 smtp_port = 25
 }}}

 Here is the modified code:


 {{{
 // Set the from name and email
   $phpmailer->From = apply_filters( 'wp_mail_from', $from_email );
   $phpmailer->FromName = null; // <== this line changed
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6829>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list