Created
July 12, 2013 19:01
-
-
Save tclancy/5986873 to your computer and use it in GitHub Desktop.
Sending Email from Django. Need to have SERVER_EMAIL and DEFAULT_FROM_EMAIL set. If you don't set the latter, no admin mail gets sent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EMAIL_HOST = 'smtp.server.net' | |
EMAIL_HOST_USER = 'user' | |
EMAIL_HOST_PASSWORD = 'p@ssword' | |
DEFAULT_FROM_EMAIL = '[email protected]' | |
SERVER_EMAIL = '[email protected]' | |
# for SSL only | |
EMAIL_PORT = 587 | |
EMAIL_USE_TLS = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment