Python / Django:发送电子邮件产生535(用于gmail电子邮件的工作)

时间:2016-09-27 12:52:42

标签: python django email sendmail

为了发送表单,我在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.comexample.net等其他区域会生成error 535。< / p>

有没有人知道造成这种情况的原因是什么?

0 个答案:

没有答案