MDL-25476 messages: switched some notification emails to come from the support contac...
[moodle.git] / enrol / self / lib.php
index 2e425a6..32c9d48 100644 (file)
@@ -291,7 +291,7 @@ class enrol_self_plugin extends enrol_plugin {
         if ($rusers) {
             $contact = reset($rusers);
         } else {
-            $contact = get_admin();
+            $contact = generate_email_supportuser();
         }
 
         //directly emailing welcome message rather than using messaging