edx/edx-platform — pull request #6081 by kluo (2014-11-27 00:13:59+00:00)
Title: Implement themed enrollment email feature

Course instructors can choose to send email to users who enroll before or after the course start date. This option is in the Settings -> Schedule & Details page in studio, and is available by setting the ENABLE_ENROLLMENT_EMAIL feature flag.

Allows theming the default enrollment email body by including a default_pre_enrollment_email.txt and/or default_post_enrollment_email.txt file in /templates/emails/

Moves bulk_email models to common in order for studio to access the CourseEmailTemplate model, for sending test email in studio.

*Note @griffresch @jinpa per discussion, this is behind a flag since eventually it would be a global platform feature rather than course-specific.