Editing sender email for welcometocoursetext

Editing sender email for welcometocoursetext

by B. M. -
Number of replies: 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

Average of ratings: -
In reply to B. M.

Re: Editing sender email for welcometocoursetext

by David Mudrák -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of 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.

In reply to David Mudrák

Re: Editing sender email for welcometocoursetext

by B. M. -

Thanks, David!