mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
Starting NOW we are using our own encode_mimeheader() function to
generate all Moodle emails. Only applied if we are running under $CFG->unicodedb. Tested with postfix and sendmail servers and Thunderbird, Mail and Entourage mail clients... Test, test, test....!
This commit is contained in:
parent
8bd7bacd14
commit
56a2b987e6
@ -1151,6 +1151,15 @@ class PHPMailer
|
||||
* @return string
|
||||
*/
|
||||
function EncodeHeader ($str, $position = 'text') {
|
||||
|
||||
/// Start Moodle Hack - if we are running under unicodedb, we'll try our own
|
||||
/// encode_header code that's multibyte-safe
|
||||
global $CFG;
|
||||
if ($CFG->unicodedb) {
|
||||
$textlib = textlib_get_instance();
|
||||
return $textlib->encode_mimeheader($str, $this->CharSet);
|
||||
}
|
||||
/// End Moodle Hack
|
||||
$x = 0;
|
||||
|
||||
switch (strtolower($position)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user