дело в пробелах вокруг знака "=" в Content-type.
кто из них в данном случае неправ? после беглово просмотра RFC - вроде бы moodle (точнее phpmailer).
фикс:
Index: lib/phpmailer/class.phpmailer.php =================================================================== --- lib/phpmailer/class.phpmailer.php (revision 272) +++ lib/phpmailer/class.phpmailer.php (working copy) @@ -979,7 +979,7 @@ if($encoding == "") { $encoding = $this->Encoding; } $result .= $this->TextLine("--" . $boundary); - $result .= sprintf("Content-Type: %s; charset = \"%s\"", + $result .= sprintf("Content-Type: %s; charset=\"%s\"", $contentType, $charSet); $result .= $this->LE; $result .= $this->HeaderLine("Content-Transfer-Encoding", $encoding);