/django/core/mail.py

源文件(行:65):
try:
    server 
= smtplib.SMTP(settings.EMAIL_HOST, settings.EMAIL_PORT)
   
if auth_user and auth_password:
        server.login(auth_user, auth_password)

修改为:
try:
    server 
= smtplib.SMTP(settings.EMAIL_HOST, settings.EMAIL_PORT)
    server.ehlo()
    
if auth_user and auth_password:
        server.esmtp_features[
"auth"= "LOGIN PLAIN"
        server.login(auth_user, auth_password)

为了解决我的 qmail 服务器 ESMTP 身份验证的问题。

相关文章:

  • 2021-06-12
  • 2022-12-23
猜你喜欢
  • 2021-06-26
  • 2021-07-06
  • 2021-11-24
  • 2021-12-17
  • 2022-01-21
  • 2021-09-24
  • 2021-07-22
相关资源
相似解决方案