Skip to content

Commit

Permalink
Merge pull request #144 from ZdruzenieSTROM/smtp-relay
Browse files Browse the repository at this point in the history
Send emails using smtp relay
  • Loading branch information
kovacspe authored Aug 21, 2024
2 parents 4a87365 + 51e4c8b commit eca6c5e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions online_competitions/settings/prod_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ def secret(secret_name: str) -> str:

# Email Settings

SERVER_EMAIL = '[email protected]'
DEFAULT_FROM_EMAIL = '[email protected]'
SERVER_EMAIL = DEFAULT_FROM_EMAIL

# Email Backend Setup

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST = 'smtp-relay.gmail.com'
EMAIL_PORT = '587'
EMAIL_USE_TLS = True
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = secret('email_password.txt')

0 comments on commit eca6c5e

Please sign in to comment.