How to send email from django-oscar.

2,243 views
Skip to first unread message

swahed

unread,
Dec 17, 2014, 3:52:07 AM12/17/14
to django...@googlegroups.com
I have created a basic shop using django-oscar. Now I want to send email from my application. How to send smtp email in django-oscar application

Joshua Wedekind

unread,
Dec 18, 2014, 3:17:22 AM12/18/14
to django...@googlegroups.com
Like, order confirmation emails?

Or just send out a general mass email to all registered users?

Django Oscar sends registration and order confirmation emails by default, but you have to have compatible software installed on your web server. 
Also, set the following field in settings.py
OSCAR_FROM_EMAIL = "y...@yourdomain.com"

Salman Wahed

unread,
Dec 18, 2014, 4:23:56 AM12/18/14
to django...@googlegroups.com
Thank you for the reply. Primarily I want to send order confirmation mail. I can see in the console that a mail is sent from oscar. How to configure it in a production server or is it possible to send smtp mail from oscar? Is there any oscar specific documentation for production server configuration for email? also it'll be very helpful if if there is a oscar deployment configuration documentation on nginx or apache server or both.

--
https://github.com/tangentlabs/django-oscar
http://django-oscar.readthedocs.org/en/latest/
https://twitter.com/django_oscar
---
You received this message because you are subscribed to a topic in the Google Groups "django-oscar" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-oscar/bevGKUC0RvE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-oscar...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-oscar.
To view this discussion on the web, visit https://groups.google.com/d/msgid/django-oscar/3906f184-c593-45e5-9499-1b4614bad41c%40googlegroups.com.

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


--
Salman Wahed.
CSE(08 batch) SUST
Software Engineer

BugSpencer

unread,
Dec 18, 2014, 5:51:57 AM12/18/14
to django...@googlegroups.com


Il giorno giovedì 18 dicembre 2014 10:23:56 UTC+1, swahed ha scritto:
Thank you for the reply. Primarily I want to send order confirmation mail. I can see in the console that a mail is sent from oscar. How to configure it in a production server or is it possible to send smtp mail from oscar? Is there any oscar specific documentation for production server configuration for email? also it'll be very helpful if if there is a oscar deployment configuration documentation on nginx or apache server or both.

Hi, I think you have "misconfigured" EMAIL_BACKEND in you settings, at least for production.
Most likely you are using "django.core.email.backends.console.EmailBackend"
while you want to use "django.core.email.backends.console.EmailBackend" which needs a bit more configuration.

More info in official docs: https://docs.djangoproject.com/en/1.7/topics/email/#smtp-backend

Hope it helps.

Joshua Wedekind

unread,
Dec 18, 2014, 3:07:58 PM12/18/14
to django...@googlegroups.com
Here is the relevant section on customizing Email templates via code or through the Dashboard/Admin:
https://django-oscar.readthedocs.org/en/releases-1.0/howto/how_to_customise_oscar_communications.html 

femi ogundayo

unread,
Aug 1, 2015, 11:57:05 AM8/1/15
to django-oscar
hi am trying to do the same thing registration email for users locally and its not working do you know how?
Reply all
Reply to author
Forward
0 new messages