Enable Bulk Email and Set 'Bulk Email' from address
These instructions will allow you to Enable Bulk Email and Set 'Bulk Email' from address.
- Set the following flags in lms.yml and studio.yml.
Use the following command to access the yml files from the terminal:
sudo nano /edx/etc/lms.yml
sudo nano /edx/etc/studio.yml
Set the following flags
BULK_EMAIL_DEFAULT_FROM_EMAIL: "EMAIL ADDRESS TO SEND BULK EMAILS FROM"
FEATURES:
ENABLE_INSTRUCTOR_EMAIL: True
Log into [platform url]/admin. This is the Django Admin panel.
From Bulk_Email, click Bulk email flags.
Add a Flag by clicking button.
Select the Enabled check box. And unselect the REQUIRE COURSE EMAIL AUTH check box(unless you want course-specific sending privileges).
Changes to bulk email so that course emails come from a generic name and not a course-specific one.
Update the lms/djangoapps/bulk_email/tasks.py file.
Find the following in the file:
from_email=configuration_helpers.get_value(
'email_from_address',
settings.BULK_EMAIL_DEFAULT_FROM_EMAIL
)
Change it to the following:
from_email=settings.BULK_EMAIL_DEFAULT_FROM_EMAIL
Restart the edx service by issuing the following command:
sudo /edx/bin/supervisorctl restart all
Changes uptil now would start sending bulk emails with default template.
To update email template follow the steps
Log into [platform url]/admin. This is the Django Admin panel.
From Bulk_Email, click Course email templates.
Add course email template by clicking button.
A sample HTML template is provided below. Update the sample info with your details where ever required.
A sample Plain template is provided below. Update the sample info with your details where ever required.
Name the template.
- From SITES, click Sites.
If site is not already created then create a site and set domain name and display name of the server.
From SITE_CONFIGURATION, click Site configurations.
Add site configuration if already not available.
. Select the site, . check the Enabled checkbox, . Modify site values . Set "course_email_template_name":"TEMPLATE NAME" . Set "course_email_from_addr":"EMAIL ADDRESS"