Browse files

MDL-37152 remove bogus $mail->IsSMTP() breaking non-smtp mailing

Credit goes to Aurelijus Bruzas, thanks.
  • Loading branch information...
1 parent 4a76321 commit 92fc5a670d89e469894a9ca725e792ddea560a8b @skodak skodak committed Dec 22, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/moodlelib.php
View
4 lib/moodlelib.php
@@ -5125,9 +5125,8 @@ function moodle_process_email($modargs,$body) {
/**
* Get mailer instance, enable buffering, flush buffer or disable buffering.
*
- * @global object
* @param string $action 'get', 'buffer', 'close' or 'flush'
- * @return object|null mailer instance if 'get' used or nothing
+ * @return moodle_phpmailer|null mailer instance if 'get' used or nothing
*/
function get_mailer($action='get') {
global $CFG;
@@ -5466,7 +5465,6 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml='', $a
if ($mail->Send()) {
set_send_count($user);
- $mail->IsSMTP(); // use SMTP directly
if (!empty($mail->SMTPDebug)) {
echo '</pre>';
}

0 comments on commit 92fc5a6

Please sign in to comment.