Skip to content

Commit

Permalink
[Bg #157002401] Add email configurations
Browse files Browse the repository at this point in the history
- SMTP details
- Move DJMAIL_REAL_BACKEND from console to smtp.
	- solves bug causing email to print to the console rather than sending out
  • Loading branch information
johnmutuma5 committed Apr 30, 2018
1 parent 9cb21c7 commit 53aa59a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hc/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,13 @@
COMPRESS_OFFLINE = True

EMAIL_BACKEND = "djmail.backends.default.EmailBackend"
DJMAIL_REAL_BACKEND="django.core.mail.backends.console.EmailBackend"
DJMAIL_REAL_BACKEND="django.core.mail.backends.smtp.EmailBackend"

EMAIL_HOST = "smtp.gmail.com"
EMAIL_PORT = "587"
EMAIL_HOST_USER = "hcravens25"
EMAIL_HOST_PASSWORD = "ravens2018"
EMAIL_USE_TLS = True

# Slack integration -- override these in local_settings
SLACK_CLIENT_ID = None
Expand Down

0 comments on commit 53aa59a

Please sign in to comment.