[wp-trac] Re: [WordPress Trac] #6861: class-phpmailer.php default configuration

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 7 18:57:02 GMT 2008


#6861: class-phpmailer.php default configuration
--------------------------+-------------------------------------------------
 Reporter:  lotabi        |        Owner:  anonymous
     Type:  defect        |       Status:  closed   
 Priority:  low           |    Milestone:  2.7      
Component:  Optimization  |      Version:           
 Severity:  normal        |   Resolution:  wontfix  
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by MattyRob):

  * status:  new => closed
  * resolution:  => wontfix

Comment:

 phpMailer is called in WordPress as a class. All of these variables can be
 changed using a plugin to redefine the variables and therefore any changes
 to the defaults should be made in the wp_mail() function in pluggable.php.

 Defining them in wp-config may cause conflicts with plugins that already
 over ride the default function.

 The solution to your issue would be a plugin file as follows:

 add_action('phpmailer_init', 'wp_mail_to_smtp');

 function wp_mail_to_smtp(&$phpmailer) {
         $phpmailer->Sender = 'send at address.com';
 }

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


More information about the wp-trac mailing list