djangallauth:通过电子邮件确认用户注册

2024-06-26 00:04:36 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用django allauth进行用户注册,我希望用户确认他们的电子邮件

现在,我收到以下错误,因为我的网络服务器不允许通过端口550发送电子邮件

SMTPSenderRefused at /accounts/password/reset/
(550, '5.0.0 Access denied', u'webmaster@localhost')
Request Method: POST
Request URL:    http://<mysite>.com/accounts/password/reset/
Django Version: 1.9
Exception Type: SMTPSenderRefused
Exception Value:    
(550, '5.0.0 Access denied', u'webmaster@localhost')
Exception Location: /usr/local/lib/python2.7/smtplib.py in sendmail, line 731
Python Executable:  /home/public/env/bin/python2.7

我联系过我的网络托管人员,他们说他们只允许通过/usr/bin/sendmail可执行文件发出电子邮件

有没有办法修改django allauth,使电子邮件机制使用sendmail可执行文件?在


Tags: django网络localhostaccess电子邮件requestexceptionpassword