gmail出现认证问题参考:https://segmentfault.com/q/1010000008458788

163邮箱配置

EMAIL_HOST = 'smtp.163.com'
EMAIL_PORT = 465
EMAIL_HOST_USER = 'xxx'
EMAIL_HOST_PASSWORD = 'xxx'.  # 这里是授权码
# 下面两项只能有一个为True
EMAIL_USE_TLS = False
EMAIL_USE_SSL = True

gmai配置

EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'xxx'
EMAIL_HOST_PASSWORD = 'xxx'
# 下面两项只能有一个为True
EMAIL_USE_TLS = True
EMAIL_USE_SSL = False
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

相关文章:

  • 2021-12-26
  • 2021-12-14
  • 2021-08-05
  • 2021-05-20
  • 2022-12-23
  • 2021-12-04
猜你喜欢
  • 2021-12-04
  • 2021-12-29
  • 2021-12-15
  • 2021-10-30
  • 2021-12-26
  • 2022-12-23
  • 2022-02-09
相关资源
相似解决方案