bulk email template

598 views
Skip to first unread message

Pierre Mailhot

unread,
Apr 27, 2015, 12:37:07 PM4/27/15
to opene...@googlegroups.com
Hello everyone!

Is there a way to associate the bulk email templates created under the Django Administration page to specific courses?

I must be blind because I don't see it in either Django or the Instructor page.

Any ideas?  Please don't tell me it's a global template...

Pierre Mailhot

unread,
Apr 27, 2015, 3:42:15 PM4/27/15
to opene...@googlegroups.com
I guess I answered my own question by looking more closely at the code and finding this piece of text in https://github.com/edx/edx-platform/wiki/Microsites-Theming :

  • course_email_template_name - Name of the CourseEmailTemplate to use when sending course emails. If the Microsite site needs to send a branded Course Email, use the Django Admin website to define an appropriate Course Email Template. Then set the configuration to point to this Template name that was used int the admin pages.

If I undestand correctly, can someone confirm, a template is global to a site or a microsite.

Sarina Canelake

unread,
Apr 28, 2015, 10:20:57 AM4/28/15
to opene...@googlegroups.com
Pierre - yes, this is true. There is no way currently to have course-specific email templates. The idea is to have consistent branding across your platform.

--
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Francisco Javier Gómez Alba

unread,
Apr 28, 2015, 11:39:19 AM4/28/15
to opene...@googlegroups.com
Hello:
I have the same problem
The steps I take are:

1. create user.
2. create course.
3. activate course:
    Home --> Bulk_Email --> Course authorizations.
    Course id: ***

4. Enable email template Course:
    Home --> Bulk_Email --> Course email templates.
        Html template: {{message_body}}
        Plain template: {{message_body}}
        Name: template1

5. I agree to the subject and link pulse: "Instructor"  --> Email
    Fill the fields and pulse"Send Email".

6. I find that if sent by clicking on: "Show Email Task History" and task Progress:
    Message faild to be emailed for any of 1 recipients ...

and log:

******************************************************
==> /edx/var/log/supervisor/lms_low_1tderr.log <==
DoesNotExist: CourseEmailTemplate matching query does not exist.
2015-04-28 11:10:42,914 INFO 2651 [edx.celery.task] subtasks.py:526 - Preparing to update status for subtask 8f8d2164-5815-400d-b263-89bc38c4211d for instructor task 4 with status SubtaskStatus<{'skipped': 1, 'retri                      ed_nomax': 0, 'task_id': u'8f8d2164-5815-400d-b263-89bc38c4211d', 'succeeded': 0, 'retried_withmax': 0, 'attempted': 1, 'failed': 1, 'state': 'FAILURE'}>
2015-04-28 11:10:42,919 INFO 2651 [edx.celery.task] subtasks.py:582 - Task output updated to {"skipped": 1, "succeeded": 0, "attempted": 1, "start_time": 1430233842.872829, "action_name": "emailed", "failed": 1, "du                      ration_ms": 43, "total": 1} for subtask 8f8d2164-5815-400d-b263-89bc38c4211d of instructor task 4
2015-04-28 11:10:42,923 ERROR 1873 [celery.worker.job] log.py:246 - Task bulk_email.tasks.send_course_email[8f8d2164-5815-400d-b263-89bc38c4211d] raised exception: <MaybeEncodingError: Error sending result: '"<Excep                      tionInfo: ObjectDoesNotExist('CourseEmailTemplate matching query does not exist.',)>"'. Reason: ''PicklingError("Can\'t pickle <class \'bulk_email.models.DoesNotExist\'>: attribute lookup bulk_email.models.DoesNotEx                      ist failed",)''.>
Traceback (most recent call last):
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/billiard/pool.py", line 297, in worker
    put((READY, (job, i, result)))
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/billiard/queues.py", line 363, in put
    return send(obj)
MaybeEncodingError: Error sending result: '"<ExceptionInfo: ObjectDoesNotExist('CourseEmailTemplate matching query does not exist.',)>"'. Reason: ''PicklingError("Can\'t pickle <class \'bulk_email.models.DoesNotExis                      t\'>: attribute lookup bulk_email.models.DoesNotExist failed",)''.

******************************************************

I've done wrong?
help.
Thank you.

Sarina Canelake

unread,
Apr 29, 2015, 11:43:55 AM4/29/15
to opene...@googlegroups.com
Try removing the name "template1". I think the default may be looking for  a template without a name. When I last played with bulk email, there was not a name for templates.

Pierre Mailhot

unread,
Apr 29, 2015, 12:04:38 PM4/29/15
to opene...@googlegroups.com
Indeed. The default is looking for "None" which is the template without a name.
From what I understand, microsites can use the "named" templates through configuration.

--
You received this message because you are subscribed to a topic in the Google Groups "Open edX operations" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openedx-ops/kb4WMNQQXsk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openedx-ops...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Salutations / Regards ,
Pierre Mailhot, M.Sc., CISSP, CEH

Sarina Canelake

unread,
May 5, 2015, 2:16:39 PM5/5/15
to opene...@googlegroups.com
heh that is very confusing :-\

glad you got it resolved!
Reply all
Reply to author
Forward
0 new messages