0
我一直在从我的django应用程序发送电子邮件中间歇性地收到这些错误。我发送的邮件很少,所以这些错误的数量是惊人的。Django:间歇性地发送邮件给gmail错误?
发送电子邮件间歇工作,以及做手工时:
>>> from django.core.mail import send_mail
>>> send_mail('Subject here', 'Here is the message.', '[email protected]', ['[email protected]'], fail_silently=False)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/var/home/ptarjan/django-dev/mysite/django/core/mail.py", line 390, in send_mail
connection=connection).send()
File "/var/home/ptarjan/django-dev/mysite/django/core/mail.py", line 266, in send
return self.get_connection(fail_silently).send_messages([self])
File "/var/home/ptarjan/django-dev/mysite/django/core/mail.py", line 172, in send_messages
sent = self._send(message)
File "/var/home/ptarjan/django-dev/mysite/django/core/mail.py", line 186, in _send
email_message.message().as_string())
File "/usr/lib/python2.5/smtplib.py", line 704, in sendmail
(code,resp) = self.data(msg)
File "/usr/lib/python2.5/smtplib.py", line 494, in data
(code,msg)=self.getreply()
File "/usr/lib/python2.5/smtplib.py", line 352, in getreply
line = self.file.readline()
File "/usr/lib/python2.5/smtplib.py", line 160, in readline
chr = self.sslobj.read(1)
sslerror: The read operation timed out
>>> send_mail('Subject here', 'Here is the message.', '[email protected]', ['[email protected]'], fail_silently=False)
1
上午我错误配置的东西吗? gmail阻止我吗? gmail是否有问题,这是一个副作用?
好吧,如果它今天继续过去,我会不接受你:) – 2009-09-02 01:53:55
今天我又得到了错误。任何其他可能性? – 2009-09-03 01:07:50