Commit 87891003 authored by Noe Nieto's avatar Noe Nieto 💬

Update email configuration

parent 8c1d311f
......@@ -60,6 +60,9 @@ PASSWORD_RESET_TOKEN_EXPIRES=1800
# EMAIL_USE_TLS = False
# Email configuration sample for production/staging
DEFAULT_FROM_EMAIL = admin@example.com
SERVER_EMAIL = noreply@example.com
EMAIL_HOST = smtp.example.com
EMAIL_HOST_USER = jhon.doe@example.com
EMAIL_PORT = 465
......
......@@ -261,10 +261,14 @@ REST_FRAMEWORK = {
PASSWORD_RESET_TOKEN_EXPIRES = secret_config('PASSWORD_RESET_TOKEN_EXPIRES', 1800)
# Email server configuration
EMAIL_HOST = config('EMAIL_HOST')
EMAIL_HOST_USER = config('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = secret_config('EMAIL_HOST_PASSWORD')
EMAIL_PORT = config('EMAIL_PORT', 25)
ADMINS = [('Librem One Admins', 'admins@librem.one'), ('Purism Admins', 'admins@puri.sm')]
DEFAULT_FROM_EMAIL = config('DEFAULT_FROM_EMAIL', 'Librem One <noreply@librem.one>')
SERVER_EMAIL = config('SERVER_EMAIL', 'Librem One <noreply@librem.one>')
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = config('EMAIL_HOST', 'localhost')
EMAIL_HOST_USER = config('EMAIL_HOST_USER', '')
EMAIL_HOST_PASSWORD = secret_config('EMAIL_HOST_PASSWORD', '')
EMAIL_PORT = config('EMAIL_PORT', 25, cast=int)
EMAIL_USE_TLS = config('EMAIL_USE_TLS', False, cast=bool)
EMAIL_USE_SSL = config('EMAIL_USE_SSL', False, cast=bool)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment