From: <vb...@us...> - 2003-07-27 03:17:16
|
Update of /cvsroot/mantisbt/mantisbt/core In directory sc8-pr-cvs1:/tmp/cvs-serv2730/core Modified Files: email_api.php Log Message: Fix #3079: Error when using phpMailer. M config_defaults_inc.php - Added $g_phpMailer_path configuration option for specifying the phpMailer directory. If left empty, it is assumed that phpMailer is in the include path. M core/email_api.php - (email_send): Use the new config option to include phpMailer files. Also use it to set the plugin directory for phpMailer. Index: email_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/email_api.php,v retrieving revision 1.59 retrieving revision 1.60 diff -u -d -r1.59 -r1.60 --- email_api.php 1 May 2003 18:09:57 -0000 1.59 +++ email_api.php 27 Jul 2003 03:17:13 -0000 1.60 @@ -592,8 +592,11 @@ # Visit http://phpmailer.sourceforge.net # if you have problems with phpMailer - include_once( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class.phpmailer.php'); + $t_phpMailer_path = config_get( 'phpMailer_path' ); + + include_once( $t_phpMailer_path . 'class.phpmailer.php'); $mail = new phpmailer; + $mail->PluginDir = $t_phpMailer_path; # Select the method to send mail switch ( $g_phpMailer_method ) { |