At some point, the smtphosts setting has been moved from the core config into the message_email plugin settings, but the get_mailer() function is still using it regardless of whether the plugin is installed. This doesn't seem like a good idea, as it means a Moodle service could be sending stuff to an SMTP server that the administrator is unable to see or change (apart from forcing it in config.php). To reproduce on a clean Moodle install:
- Set up an SMTP server in the smtphosts setting
- Uninstall the message_email plugin
- Confirm that mail is still being sent to the SMTP server
- Confirm that the smtphosts setting is unavailable for editing
- is a regression caused by
-
MDL-27171 Improved configuration options for the messaging system
-
- Closed
-