Editing sender email for welcometocoursetext

Editing sender email for welcometocoursetext

av B. M. -
Antall svar: 2

Hi there,


Having done some testing it seems that Moodle sends out the selfenrolment welcome email (if this is enabled) using the first assigned teacher's email address as sender. However, if no teacher is assigned at the course the default admin support contact email address will be used instead.


Is there no way to edit the sender email? Teachers at my institution have made clear that they don't want to be listed - individually - as senders of the welcome message. But at the same time they should be listed as teachers in the courses.


Do any of you know which php-file to edit - or perhaps a more clever way of achieving it altogether?


Best rgs,

Brian

Gjennomsnittlig vurdering: -
Som svar til B. M.

Re: Editing sender email for welcometocoursetext

av David Mudrák -
Bilde av Core developers Bilde av Documentation writers Bilde av Moodle HQ Bilde av Particularly helpful Moodlers Bilde av Peer reviewers Bilde av Plugin developers Bilde av Plugins guardians Bilde av Testers Bilde av Translators

You are right. This behaviour is hardcoded. See the bottom of the method enrol_self_plugin::email_welcome_message() in the file enrol/self/lib.php which is the place you will want to eventually edit.