Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change mail to Shef uni smtp #223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,22 +225,22 @@
# emails though Google's API. See README.md for more details.
# USERNAME, PASSWORD AND SECRET TOKENS SHOULD BE PLACED INSIDE secret.py
"""
EMAIL_BACKEND = 'gmailapi_backend.mail.GmailBackend'
GMAIL_API_CLIENT_ID = SECRET_GMAIL_API_CLIENT_ID
GMAIL_API_CLIENT_SECRET = SECRET_GMAIL_API_CLIENT_SECRET
GMAIL_API_REFRESH_TOKEN = SECRET_GMAIL_API_REFRESH_TOKEN
# EMAIL_BACKEND = 'gmailapi_backend.mail.GmailBackend'
# GMAIL_API_CLIENT_ID = SECRET_GMAIL_API_CLIENT_ID
# GMAIL_API_CLIENT_SECRET = SECRET_GMAIL_API_CLIENT_SECRET
# GMAIL_API_REFRESH_TOKEN = SECRET_GMAIL_API_REFRESH_TOKEN

"""
Send e-mail through standard SMTP serer. See [https://github.com/dolfim/django-gmailapi-backend](https://github.com/dolfim/django-gmailapi-backend)
for full list of configuration parameters.

Uncomment below to enable settings
"""
# EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
# EMAIL_HOST = 'myserver.com'
# EMAIL_PORT = 22
# EMAIL_HOST_USER = SECRET_EMAIL_HOST_USER
# EMAIL_HOST_PASSWORD = SECRET_EMAIL_HOST_PASSWORD
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp-relay.gmail.com'
EMAIL_PORT = 25
EMAIL_HOST_USER = SECRET_EMAIL_HOST_USER
EMAIL_HOST_PASSWORD = SECRET_EMAIL_HOST_PASSWORD


# https://docs.djangoproject.com/en/dev/ref/settings/#email-timeout
Expand Down