Updated some email settings to be used in production

This commit is contained in:
root
2015-01-27 16:56:46 +00:00
parent 1aff7bcadb
commit b2b5438e12

View File

@@ -95,6 +95,11 @@ ACCOUNT_ACTIVATION_DAYS = 7
EMAILER_TEST = False
if not DEBUG or EMAILER_TEST:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'server.techost.co.uk'
EMAIL_PORT = 465
EMAIL_HOST_USER = 'tec'
EMAIL_HOST_PASSWORD = 's7m4R3X'
DEFAULT_FROM_EMAIL = 'rigs@nottinghamtec.co.uk'
else:
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
@@ -138,4 +143,4 @@ TEMPLATE_DIRS = (
os.path.join(BASE_DIR, 'templates'),
)
TERMS_OF_HIRE_URL = "http://dev.nottinghamtec.co.uk/wp-content/uploads/2014/11/terms.pdf"
TERMS_OF_HIRE_URL = "http://dev.nottinghamtec.co.uk/wp-content/uploads/2014/11/terms.pdf"