Instruction Dashboard option for sending bulk email to users

504 views
Skip to first unread message

Aparna P

unread,
Feb 9, 2015, 2:32:34 AM2/9/15
to edx-...@googlegroups.com
Hi all,
I need to be able to send bulk email to course participants from instructor role. http://edx-partner-course-staff.readthedocs.org/en/latest/running_course/bulk_email.html was helpful for understanding the functionality.

So, I have set the value of ENABLE_INSTRUCTOR_EMAIL to True. Even after that, EMAIL option is not visible in the instructor dashboard of LMS. I found that the bulk_email_courseauthorization was empty. When I populated the table manually with the relevant course id with email_enabled=1, then the bulk email option became visible. What is the way to get bulk_email_courseauthorization populated automatically?

Thanks,
Aparna

Marco Re

unread,
Feb 9, 2015, 5:50:59 AM2/9/15
to edx-...@googlegroups.com
 Look here : https://github.com/edx/edx-platform/blob/master/lms/envs/common.py#L142

    # Enables the LMS bulk email feature for course staff
    'ENABLE_INSTRUCTOR_EMAIL': True,
    # If True and ENABLE_INSTRUCTOR_EMAIL: Forces email to be explicitly turned on
    #   for each course via django-admin interface.
    # If False and ENABLE_INSTRUCTOR_EMAIL: Email will be turned on by default
    #   for all Mongo-backed courses.
    'REQUIRE_COURSE_EMAIL_AUTH': True

If you want a per-course setting you need to manually populate the bulk_email_courseauthorization , elsewhere set REQUIRE_COURSE_EMAIL_AUTH:False and all course will be email enabled

Marco

Ovnicraft

unread,
Feb 9, 2015, 9:18:14 AM2/9/15
to edx-...@googlegroups.com
You can add via django admin in bulk email "Course Authorization" the course id, then you get what you want.

Regards,

Thanks,
Aparna




--

Nilesh Londhe

unread,
Feb 9, 2015, 5:42:34 PM2/9/15
to edx-...@googlegroups.com

I have birch setup and have mandrill smtp setup correctly. I see that I am successfully getting emails for password change etc.

Then I enabled instructor email like Cristian described below and then sent a test to myself but that email did not go out. This is a text representation of what I see on the instructor dashboard. http://domain.com/courses/provider/101/2015_Winter/instructor#view-send_email

Email Task History

To see the content of all previously sent emails, click this button:

To read an email, click its subject.

SubjectSent ByTime SentNumber Sent
This is a test email

nilesh

Feb 09, 2015 at 22:28 UTC

0 sent, 1 failed

To see the status for all bulk email tasks ever submitted for this course, click on this button:

Task Type Task inputs Task ID Requester Submitted Duration (sec)State Task Status Task Progress

bulk_course_email{"email_id": 1, "to_option": "myself"}0500ab85-f655-465b-8330-e72a17d57caanilesh2015-02-09T22:28:39+00:000 SUCCESS Incomplete Message failed to be emailed for any of 1

Where can I find the corresponding logs to debug further?

On Monday, February 9, 2015 at 6:18:14 AM UTC-8, Cristian Salamea wrote:

You can add via django admin in bulk email "Course Authorization" the course id, then you get what you want.

Regards,

Aparna P

unread,
Feb 10, 2015, 5:55:24 AM2/10/15
to edx-...@googlegroups.com
Thanks, Marco and Cristian.

I have set the value of REQUIRE_COURSE_EMAIL_AUTH such that bulk email is enabled for all courses. Also, specified the template and set email_enabled=1 in bulk_email_courseauthorization table.

Now what is happening is that the email sending code looks into my microsite configuration for the name of the email template. Since we haven't used microsites(yet), it (correctly) finds that microsite configuration for email template is undefined and throws an exception. Any idea what is the right way to let the email sending code know which template I want to use in a scenario where microsite is not configured?
Thanks,
Aparna

Chris Dodge

unread,
Feb 10, 2015, 9:01:36 AM2/10/15
to edx-...@googlegroups.com
Can you provide a stack trace on the error? This seems similar to a problem reported a few months ago. Also, are you running the "Aspen" release or something more recent?

- Chris Dodge

Chris Dodge

unread,
Feb 10, 2015, 9:03:23 AM2/10/15
to edx-...@googlegroups.com
Here is the other thread I was mentioning - look about 1/2 way down:


Here I give a pull request to cherry-pick into an Aspen release.

- Chris Dodge
Reply all
Reply to author
Forward
0 new messages