[wp-trac] Re: [WordPress Trac] #5869: Weird GoDaddy Problem With WordPress

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 16 14:27:00 GMT 2008


#5869: Weird GoDaddy Problem With WordPress
----------------------+-----------------------------------------------------
 Reporter:  nberardi  |        Owner:  anonymous
     Type:  defect    |       Status:  new      
 Priority:  high      |    Milestone:  2.3.4    
Component:  General   |      Version:  2.3.3    
 Severity:  normal    |   Resolution:           
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by nberardi):

  * priority:  normal => high
  * milestone:  2.5 => 2.3.4

Comment:

 I found the problem.  It lies in the fact that by defult in the php.ini
 file doesn't have a from email address set by default.

 On Line 431 in class-phpmailer.php I found this line for only when Sender
 is set:

 {{{
 $old_from = ini_get("sendmail_from");
 ini_set("sendmail_from", $this->Sender);
 }}}

 So I added the following line:

 {{{
 ini_set("sendmail_from", $from_email);
 }}}

 Right before (in pluggable.php):

 {{{
 // Set the from name and email
 $phpmailer->From = apply_filters( 'wp_mail_from', $from_email );
 $phpmailer->FromName = apply_filters( 'wp_mail_from_name', $from_name );
 }}}

 And everything worked.  I guess PHP has some mail interfacing issues in
 different environments.  By the way there is an undated PHPMailer out on
 Source Forge.

 Hope I helped solve this problem.  I think this one is easy enought to
 solve that you guys might be able to put it in under the next release.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5869#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list