From 036d25b6bde34c0f11c4afeb847c82ea8dd9a7ff Mon Sep 17 00:00:00 2001 From: Luke Faraone Date: Mon, 1 Oct 2012 15:03:59 -0400 Subject: [PATCH] Configure email through Gmail (imported from commit 45fdfa4310f94c9e04dc1710dcb291003c1cc0f5) --- humbug/settings.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/humbug/settings.py b/humbug/settings.py index bf6bf7337a..1760373244 100644 --- a/humbug/settings.py +++ b/humbug/settings.py @@ -182,14 +182,18 @@ LOGGING = { } ACCOUNT_ACTIVATION_DAYS=7 -EMAIL_HOST='localhost' -EMAIL_PORT=9991 -EMAIL_HOST_USER='username' -EMAIL_HOST_PASSWORD='password' +EMAIL_USE_TLS = True +EMAIL_HOST = 'smtp.gmail.com' +EMAIL_HOST_USER = 'humbug@humbughq.com' +EMAIL_HOST_PASSWORD = 'xxxxxxxxxxxxxxxx' +EMAIL_PORT = 587 + +DEFAULT_FROM_EMAIL = "Humbug Central Services " LOGIN_REDIRECT_URL='/' ZEPHYR_LOG="all_zephyrs_log" # For testing, you may want to have emails be printed to the console. -#EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' +if not deployed: + EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'