Skip to content

Commit e211b3b

Browse files
committed
update email config
1 parent 5b7027b commit e211b3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

DjangoBlog/settings.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,11 @@
192192
# Emial:
193193
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
194194

195-
EMAIL_USE_TLS = True
196-
# EMAIL_USE_SSL = True
195+
#EMAIL_USE_TLS = True
196+
EMAIL_USE_SSL = True
197197

198-
EMAIL_HOST = 'smtp.zoho.com'
199-
EMAIL_PORT = 587
198+
EMAIL_HOST = 'smtp.mxhichina.com'
199+
EMAIL_PORT = 465
200200
EMAIL_HOST_USER = os.environ.get('DJANGO_EMAIL_USER')
201201
EMAIL_HOST_PASSWORD = os.environ.get('DJANGO_EMAIL_PASSWORD')
202202
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER

0 commit comments

Comments
 (0)