Switch email backend from Gmail to Brevo
This commit is contained in:
@@ -136,14 +136,19 @@ USE_THOUSAND_SEPARATOR = True
|
||||
DECIMAL_SEPARATOR = ','
|
||||
|
||||
#EMAIL SMTP
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||
EMAIL_HOST = 'smtp.gmail.com'
|
||||
EMAIL_PORT = 587
|
||||
EMAIL_USE_TLS = True
|
||||
EMAIL_HOST_USER = os.getenv("CONF_MAIL")
|
||||
EMAIL_HOST_PASSWORD = os.getenv("CONF_MAIL_PASSWORD")
|
||||
EMAIL_BACKEND = config('EMAIL_BACKEND', default='django.core.mail.backends.smtp.EmailBackend')
|
||||
EMAIL_HOST = config('EMAIL_HOST', default='smtp-relay.brevo.com')
|
||||
EMAIL_PORT = config('EMAIL_PORT', default=587, cast=int)
|
||||
EMAIL_USE_TLS = config('EMAIL_USE_TLS', default=True, cast=bool)
|
||||
EMAIL_HOST_USER = config('EMAIL_HOST_USER')
|
||||
EMAIL_HOST_PASSWORD = config('EMAIL_HOST_PASSWORD')
|
||||
DEFAULT_FROM_EMAIL = config('DEFAULT_FROM_EMAIL')
|
||||
|
||||
|
||||
ADMINS = [
|
||||
("AS", "amirsabani303@gmail.com"),
|
||||
]
|
||||
|
||||
# Static files (CSS, JavaScript, Images)
|
||||
# https://docs.djangoproject.com/en/5.1/howto/static-files/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user