-
Bug
-
Resolution: Fixed
-
Minor
-
2.2.6, 2.3.3, 2.4, 2.5
-
MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
-
w51_
MDL-37152_m25_smtp -
We are experiencing the same issue as described in this bug report: http://tracker.moodle.org/browse/MDL-29494
Users are getting this error message: "SMTP Error: Could not connect to SMTP host", although our configuration uses default PHP mail function (smtphosts is empty).
Looking at the source I found that $mail->IsSMTP() is being called in email_to_user function after a message is successfully sent (lib/moodlelib.php line 5469 in MOODLE_23_STABLE, 5505 in MOODLE_24_STABLE).
A quick workaround is to set smtpmaxbulk to 1 - so that the same incorrectly reconfigured mailer is not reused for next messages.