Sending email to customer from django admin

398 views
Skip to first unread message

Aaron Kim

unread,
Sep 15, 2017, 11:28:50 PM9/15/17
to django-oscar
I am successfully sending email to customer at event. e.g. order confirmation

However, when I add email from django admin -> Customer -> email, it shows up on customer's email history in his/her account but doesn't actually receive an email. 

Am I missing something for django admin to be able to send email?

Any comment is welcome. Thanks in advance. 

Samir Shah

unread,
Sep 19, 2017, 12:11:03 AM9/19/17
to django-oscar
 That isn't how the Email model works - creating an object there will not automatically send an email to the customer. Rather that is where emails sent through the Dispatcher  are saved, as part of the sending process. There is no way in the core to send an email to the customer directly from the admin - it is normally done somewhere in code.

The Dispatcher isn't very well documented (if at all), so you're probably best off looking at the source itself (https://github.com/django-oscar/django-oscar/blob/master/src/oscar/apps/customer/utils.py).

Aaron Kim

unread,
Sep 19, 2017, 12:54:51 AM9/19/17
to django-oscar
Thanks a lot for your response, Samir. Sounds like problem may fix if I customize the Dispatcher then. Cheers
Reply all
Reply to author
Forward
0 new messages