Issue Details (XML | Word | Printable)

Key: MDL-12703
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mike Churchward
Reporter: Robert Brenstein
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

welcome emails are not sent for course enrollments

Created: 22/Dec/07 08:27 AM   Updated: 29/Dec/07 02:19 AM
Component/s: Enrolments
Affects Version/s: 1.8.3
Fix Version/s: 1.8, 1.9, 2.0

Participants: Mike Churchward and Robert Brenstein
Security Level: None
Resolved date: 29/Dec/07
Affected Branches: MOODLE_18_STABLE
Fixed Branches: MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE


 Description  « Hide
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.



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.