[英]Use email created on cpanel to send message in django
i try to make setting for send message to user when they create account or rest password ( i use all auth ) ,, but when try to create acc to ex the page just still loading , it don't do anything how to fix it我尝试在创建帐户或其余密码时设置向用户发送消息(我使用所有身份验证),但是当尝试创建 acc 以前页面仍在加载时,它没有做任何修复它
# email message send
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST= 'mail.filltasks.live'
EMAIL_HOST_USER= 'no-reply@filltasks.live'
EMAIL_HOST_PASSWORD= 'mypass_namecheap_acc'
EMAIL_USE_TLS= True
EMAIL_PORT= 465
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
edit it do that and worked fine !!!!编辑它这样做并且工作正常!!!!
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'mail.yourdomain' # for ex ,, mail.site.com
EMAIL_HOST_USER = 'no-reply@filltasks.live'
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
EMAIL_HOST_PASSWORD = ' the password for your email not your account'
EMAIL_PORT = 587
EMAIL_USE_SSL = False
EMAIL_USE_TLS = True
thanks for感谢
https://stackoverflow.com/a/48750034/19161837 https://stackoverflow.com/a/48750034/19161837
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'mail.yourdomain' # for ex ,, mail.site.com
EMAIL_HOST_USER = 'no-reply@filltasks.live'
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
EMAIL_HOST_PASSWORD = ' the password for your email not your account'
EMAIL_PORT = 587
EMAIL_USE_SSL = False
EMAIL_USE_TLS = True
thanks for感谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.