u011377873
Pfc小书生
2015-01-13 06:55

django smtp邮件发送问题

  • django
  • email

#setting.py配置
#邮件配置
EMAIL_HOST = 'smtp.163.com' #SMTP地址
EMAIL_PORT = 25 #SMTP端口
EMAIL_HOST_USER = '****@163.com' #我自己的邮箱
EMAIL_HOST_PASSWORD = '****' #我的邮箱密码
EMAIL_USE_TLS = False

        send_mail(
            'Feedback from your site, topic: %s' % topic,
            message, sender,
            ['****@qq.com'],
        )

报错:(553, b'Mail from must equal authorized user', 'webmaster@localhost')
确认smtp已开启,求大神解答

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

5条回答