Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29110

Specify welcome email sender in enrol_self, or send emails from system noreply address

    XMLWordPrintable

    Details

    • Database:
      Any
    • Testing Instructions:
      Hide
      Pre-requisites
      1. You will need an email server to test. You can use an docker instance for that:
        https://docs.google.com/a/moodle.com/document/d/1V8IehjG7C2EXh17hU8bBW1sxmHoWONiYfUT9nx1IYuE/edit?usp=sharing
      1. Log in as admin.
      2. Pick a users, or create new ones and set them valid email address.
      3. Go to Site administration ► Plugins ► Enrolments ► Manage enrol plugins
      4. Enable Self enrolment.
      5. Create a new course
      6. Go to Course administration ► Users ► Enrolment methods
      7. Click to edit Self enrolment method.
      8. Choose a custom welcome message.
      9. Note there is a new drop-down with four options, where you can select the user you want send the welcome message from.
      10. First, select Do not send and save.
      11. Log in as the user with valid email.
      12. Go to Site home, choose the course with self enrolment enabled and enrol yourself.
      13. Check your email inbox (I've used thunderbird)
      14. Make sure you have not received any email.
      Send as first contact marked as course contact
      1. As admin, go to Course administration ► Users ► Enrolment methods
      2. Click to edit Self enrolment method again.
      3. Now, change the Send course welcome message to As the first user marked course contact and save.
      4. Create another user, give it an email address and save it.
      5. Go to Site administration ► Appearance ► Courses, Set coursecontact to teacher and save.
      6. Enrol an user as teacher on your course.
      7. As the student, unenrol and enrol yourself again.
      8. Check your email inbox, make sure you got an email from the course contact user (teacher).
      Send as first enrolment key holder.
      1. As admin, go to Course administration ► Users ► Enrolment methods
      2. Click to edit Self enrolment method again.
      3. Now, change the Send course welcome message to As the first user with key holder role assigned and save.
      4. Enrol a manager on that course, let's say m1.
      5. Go to Course administration ► Users ► Permissions
        • Assign enrol/self:holdkey to manager role.
      6. As the student that was enrolled, un-enrol yourself and enrol again.
      7. Check your student email inbox and make sure you got the email from key holder (manager) user.
      Send as noreplyaddress
      1. As admin, go to Course administration ► Users ► Enrolment methods
      2. Click to edit Self enrolment method again.
      3. Now, change the Send course welcome message to As no reply address and save.
      4. As the student, unenrol and enrol yourself in the course.
      5. Check your email inbox, make sure you got an email from no reply address.

      If for some reason you do not have a course contact or a key holder, the message will be sent as no reply address contact.

      Show
      Pre-requisites You will need an email server to test. You can use an docker instance for that: https://docs.google.com/a/moodle.com/document/d/1V8IehjG7C2EXh17hU8bBW1sxmHoWONiYfUT9nx1IYuE/edit?usp=sharing Log in as admin. Pick a users, or create new ones and set them valid email address. Go to Site administration ► Plugins ► Enrolments ► Manage enrol plugins Enable Self enrolment. Create a new course Go to Course administration ► Users ► Enrolment methods Click to edit Self enrolment method. Choose a custom welcome message. Note there is a new drop-down with four options, where you can select the user you want send the welcome message from. First, select Do not send and save. Log in as the user with valid email. Go to Site home, choose the course with self enrolment enabled and enrol yourself. Check your email inbox (I've used thunderbird) Make sure you have not received any email. Send as first contact marked as course contact As admin, go to Course administration ► Users ► Enrolment methods Click to edit Self enrolment method again. Now, change the Send course welcome message to As the first user marked course contact and save. Create another user, give it an email address and save it. Go to Site administration ► Appearance ► Courses, Set coursecontact to teacher and save. Enrol an user as teacher on your course. As the student, unenrol and enrol yourself again. Check your email inbox, make sure you got an email from the course contact user (teacher). Send as first enrolment key holder. As admin, go to Course administration ► Users ► Enrolment methods Click to edit Self enrolment method again. Now, change the Send course welcome message to As the first user with key holder role assigned and save. Enrol a manager on that course, let's say m1. Go to Course administration ► Users ► Permissions Assign enrol/self:holdkey to manager role. As the student that was enrolled, un-enrol yourself and enrol again. Check your student email inbox and make sure you got the email from key holder (manager) user. Send as noreplyaddress As admin, go to Course administration ► Users ► Enrolment methods Click to edit Self enrolment method again. Now, change the Send course welcome message to As no reply address and save. As the student, unenrol and enrol yourself in the course. Check your email inbox, make sure you got an email from no reply address. If for some reason you do not have a course contact or a key holder, the message will be sent as no reply address contact.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_28_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-29110-master
    • Sprint:
      3.2 Sprint 7

      Description

      There doesn't seem to be an option to specify from which tutor within a course the "Welcome" email is sent. (http://moodle.org/mod/forum/discuss.php?d=182958)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lameze Simey Lameze
              Reporter:
              tinania Tina Schaefer
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              Andrew Nicols
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              15 Vote for this issue
              Watchers:
              17 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                5/Dec/16