lib/phpmailer MDL-20701 - Convert to moodle_phpmailer class

Stage 2 - We now extend phpmailer and do our customisations in our subclass
rather than directly in the original file.

Previously we modified SetLanguage(), but I have not carried that change over
because I could not see code paths where this gets executed.(See bug)

I tested the header/content of the old class vs this one and think the changes
are all carried over. (If anyone has clever thoughts for how to unit test this
mailing out it would be useful, especially for upgrading phpmailer).
This commit is contained in:
Dan Poltawski
2009-11-03 21:02:36 +00:00
parent ed54683612
commit 8843e0bb3c
3 changed files with 118 additions and 12 deletions
+2 -2
View File
@@ -4416,8 +4416,8 @@ function &get_mailer($action='get') {
get_mailer('flush');
}
include_once($CFG->libdir.'/phpmailer/class.phpmailer.php');
$mailer = new phpmailer();
include_once($CFG->libdir.'/phpmailer/moodle_phpmailer.php');
$mailer = new moodle_phpmailer();
$counter = 1;