为了发送表单,我在AJAX中有一个脚本,它运行电子邮件触发器功能。返回以下错误:
EMAIL_HOST='mail.example.com'
EMAIL_HOST_USER='no-reply@example.com'
EMAIL_HOST_PASSWORD='xxx'
EMAIL_PORT='25'
为了发送表单,我在AJAX中有一个脚本,它运行电子邮件触发器功能。返回以下错误:
SMTPAuthenticationError at /vendas/contato/
(535, 'Incorrect authentication data')
Request Method: POST
Request URL: http://example.com/vendas/contato/
Django Version: 1.3
Exception Type: SMTPAuthenticationError
Exception Value:
(535, 'Incorrect authentication data')
Exception Location: /usr/local/lib/python2.7/smtplib.py in login, line 622
Python Executable: /usr/bin/python
Python Version: 2.7.9
Python Path:
['/home/example/pythonenv/lib/python2.7/site-packages',
'/usr/local/lib/python2.7/site-packages/setuptools-12.1-py2.7.egg',
'/usr/local/lib/python2.7/site-packages/pip-8.1.2-py2.7.egg',
'/usr/local/lib/python27.zip',
'/usr/local/lib/python2.7',
'/usr/local/lib/python2.7/plat-linux2',
'/usr/local/lib/python2.7/lib-tk',
'/usr/local/lib/python2.7/lib-old',
'/usr/local/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/site-packages',
'/home/example/pythonenv/lib/python2.7/site-packages',
'/home/example/src/myproject']
Server time: Seg, 26 Set 2016 17:08:45 -0300
经过一些测试后,我发现在向gmail电子邮件发送邮件时,它会正常发送,example.com
或example.net
等其他区域会生成error 535
。< / p>
有没有人知道造成这种情况的原因是什么?