Satchmo's Contact Form Dont send email

301 Views Asked by At

I am a newbie using satchmo shop for the first time. This is my first ever question with stack too. So far I have been able to manage the customization to a reasonably well except the 2 things that I am eagerly looking to work for me.

  1. When try to send an email through Contact form, emails are not sent??
  2. Can anyone give me pointer/guide for a working setting in order to test and run django-registration for my new shop??
2

There are 2 best solutions below

0
On

if there is problem in email settings then try this one,

EMAIL_HOST = 'smtp.gmail.com' 
EMAIL_PORT = 587 
EMAIL_HOST_USER = '[email protected]' 
EMAIL_HOST_PASSWORD = 'password' 
EMAIL_USE_TLS = True

this works for me!

0
On

Well, I guess this steps would help:

  • make sure you have 'registration' on your INSTALLED_APPS on the settings.py
  • you must set the LIVESETTINGS_OPTIONS to. This can be done from the Livesettings-app in the Admin while not on Pruduction. Afterwards you should make sure you turn them off with the 'DB'-option turned to False and "hardcoding" your live-settings on settings.py (see live_settings docs). For example:

    LIVESETTINGS_OPTIONS = { 1: {
        'DB': False,
        'SETTINGS': { ...
    

    ... if you wish and you already know which settings you want to set, you can can set them directly on settings.py too. That's of course a little bit faster. But don't try to hard-code them and if 'DB' is True, change them too on the admin, as probalby the admin-ones would override your hardcoded ones, leading to obscure, buggy situations :-)

    The live-settings relevant for the registration:

    LIVESETTINGS_OPTIONS = { 1: {
        'DB': False,
        'SETTINGS': {
         ...
            u'SHOP': {
                u'ACCOUNT_VERIFICATION': u'EMAIL',
                u'ACCOUNT_ACTIVATION_DAYS': u'7',
            ...
            }
        ...
        }
    }}