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

welcome emails are not sent for course enrollments

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.3
    • Fix Version/s: 1.8, 1.9, 2.0
    • Component/s: Enrolments
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      Normally when users enroll in a course, they should be getting a welcome email. No such messages are sent in the Moodle 1.8.3+. The problem seems to be causes by

      if (!empty($course->welcomemessage))

      check in function email_welcome_message_to_user() – sending welcome email is bracketted by this check. Removing that check [and fetching the msg text thru get_string("welcometocoursetext", "", $a);] reactivates sending welcome email.

      The $course variable is initiated from mdl_course record but there is no field with such a name, so welcomemessage should be set somewhere in code. However, global search of all php files does not find it and failure at execution time proves that somebody messed something up. Seems like a botched or unfinished effort to centralize sending the welcome message and/or to allow course-specific welcome texts.

      Flatfile and paypal plugins are unaffected since they are those messages on their own.

        Attachments

          Activity

            People

            • Assignee:
              mchurch Mike Churchward
              Reporter:
              robek Robert Brenstein
              Tester:
              Nobody
              Participants:
              Component watchers:
              Amaia Anabitarte, David Mudrák (@mudrd8mz), Sara Arjona (@sarjona)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                31/Mar/07