2005年02月23日 星期三 09:45
老是抛下面那个异常... 是不是说smtplib.SMTP() 不支持认证??那该怎么做呢? msg = MIMEText(out) host = "mail.localhost" me = "orciloud tang <orciloud at localhost>" you = "orciloud at gmail.com" subject = "system email" msg['Subject'] = subject msg['From'] = me msg['To'] = you s = smtplib.SMTP() s.connect(host) s.login("orciloud","test") s.sendmail(me, [you], msg.as_string()) s.close() Traceback (most recent call last): File "t.py", line 82, in ? s.login("orciloud","test") File "/usr/local/lib/python2.4/smtplib.py", line 547, in login raise SMTPException("SMTP AUTH extension not supported by server.") smtplib.SMTPException: SMTP AUTH extension not supported by server. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050223/0be34440/attachment.htm
2005年02月23日 星期三 10:22
可能是你用的服务器不支持认证. orciloud tang wrote: > > 老是抛下面那个异常... > 是不是说smtplib.SMTP() 不支持认证??那该怎么做呢? > > msg = MIMEText(out) > > host = "mail.localhost" > me = "orciloud tang <orciloud at localhost>" > you = "orciloud at gmail.com" > subject = "system email" > > msg['Subject'] = subject > msg['From'] = me > msg['To'] = you > > s = smtplib.SMTP() > s.connect(host) > s.login("orciloud","test") > s.sendmail(me, [you], msg.as_string()) > s.close() > > > > Traceback (most recent call last): > File "t.py", line 82, in ? > s.login("orciloud","test") > File "/usr/local/lib/python2.4/smtplib.py", line 547, in login > raise SMTPException("SMTP AUTH extension not supported by server.") > smtplib.SMTPException: SMTP AUTH extension not supported by server. > > >------------------------------------------------------------------------ > >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050223/8b43cf85/attachment.html
2005年02月23日 星期三 10:31
看这个异常好像是你的mail server没有配置smtp auth啊。 是send mail还是qmail? On Wed, 23 Feb 2005 09:45:08 +0800 orciloud tang <orciloud at gmail.com> wrote: ================================================================= > > 老是抛下面那个异常... > 是不是说smtplib.SMTP() 不支持认证??那该怎么做呢? > > msg = MIMEText(out) > > host = "mail.localhost" > me = "orciloud tang <orciloud at localhost>" > you = "orciloud at gmail.com" > subject = "system email" > > msg['Subject'] = subject > msg['From'] = me > msg['To'] = you > > s = smtplib.SMTP() > s.connect(host) > s.login("orciloud","test") > s.sendmail(me, [you], msg.as_string()) > s.close() > > > > Traceback (most recent call last): > File "t.py", line 82, in ? > s.login("orciloud","test") > File "/usr/local/lib/python2.4/smtplib.py", line 547, in login > raise SMTPException("SMTP AUTH extension not supported by server.") > smtplib.SMTPException: SMTP AUTH extension not supported by server. > > >
2005年02月23日 星期三 10:59
如果去掉 s.login 的话,,, 中断后就出这个。。 好像更加深奥了,, 那gmail 支持认证么?我用gmail看看... [root at localhost filmclub]# python t.py total_forward:46 uniq_forward:42 total_index:27 uniq_index:8 ttt Traceback (most recent call last): File "t.py", line 85, in ? s.sendmail(me, [you], msg.as_string()) File "/usr/local/lib/python2.4/smtplib.py", line 687, in sendmail self.rset() File "/usr/local/lib/python2.4/smtplib.py", line 446, in rset return self.docmd("rset") File "/usr/local/lib/python2.4/smtplib.py", line 371, in docmd return self.getreply() File "/usr/local/lib/python2.4/smtplib.py", line 345, in getreply line = self.file.readline() File "/usr/local/lib/python2.4/socket.py", line 340, in readline data = self._sock.recv(self._rbufsize) KeyboardInterrupt [root at localhost filmclub]# On 2/23/05 10:29 AM, "马剑" <honeyday at staffonly.org> wrote: > 看这个异常好像是你的mail server没有配置smtp auth啊。 > 是send mail还是qmail? > > On Wed, 23 Feb 2005 09:45:08 +0800 > orciloud tang <orciloud at gmail.com> wrote: > ================================================================= >> >> 老是抛下面那个异常... >> 是不是说smtplib.SMTP() 不支持认证??那该怎么做呢? >> >> msg = MIMEText(out) >> >> host = "mail.localhost" >> me = "orciloud tang <orciloud at localhost>" >> you = "orciloud at gmail.com" >> subject = "system email" >> >> msg['Subject'] = subject >> msg['From'] = me >> msg['To'] = you >> >> s = smtplib.SMTP() >> s.connect(host) >> s.login("orciloud","test") >> s.sendmail(me, [you], msg.as_string()) >> s.close() >> >> >> >> Traceback (most recent call last): >> File "t.py", line 82, in ? >> s.login("orciloud","test") >> File "/usr/local/lib/python2.4/smtplib.py", line 547, in login >> raise SMTPException("SMTP AUTH extension not supported by server.") >> smtplib.SMTPException: SMTP AUTH extension not supported by server. >> >> >> > > > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese
2005年02月23日 星期三 11:30
应该是qmail的。。。 On 2/23/05 10:29 AM, "马剑" <honeyday at staffonly.org> wrote: > 看这个异常好像是你的mail server没有配置smtp auth啊。 > 是send mail还是qmail? > > On Wed, 23 Feb 2005 09:45:08 +0800 > orciloud tang <orciloud at gmail.com> wrote: > ================================================================= >> >> 老是抛下面那个异常... >> 是不是说smtplib.SMTP() 不支持认证??那该怎么做呢? >> >> msg = MIMEText(out) >> >> host = "mail.localhost" >> me = "orciloud tang <orciloud at localhost>" >> you = "orciloud at gmail.com" >> subject = "system email" >> >> msg['Subject'] = subject >> msg['From'] = me >> msg['To'] = you >> >> s = smtplib.SMTP() >> s.connect(host) >> s.login("orciloud","test") >> s.sendmail(me, [you], msg.as_string()) >> s.close() >> >> >> >> Traceback (most recent call last): >> File "t.py", line 82, in ? >> s.login("orciloud","test") >> File "/usr/local/lib/python2.4/smtplib.py", line 547, in login >> raise SMTPException("SMTP AUTH extension not supported by server.") >> smtplib.SMTPException: SMTP AUTH extension not supported by server. >> >> >> > > > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese
2005年02月23日 星期三 11:40
那就去加一个smtp认证的模块。 要是纯测试的话,就找一个免费的邮箱试试看好了。 我记得好像sina的信箱需要smtp认证的,可以试试看。 On Wed, 23 Feb 2005 11:30:21 +0800 orciloud tang <orciloud at gmail.com> wrote: ================================================================= > > 应该是qmail的。。。 > > On 2/23/05 10:29 AM, "马剑" <honeyday at staffonly.org> wrote: > > > 看这个异常好像是你的mail server没有配置smtp auth啊。 > > 是send mail还是qmail? > > > > On Wed, 23 Feb 2005 09:45:08 +0800 > > orciloud tang <orciloud at gmail.com> wrote: > > ================================================================= > >> > >> 老是抛下面那个异常... > >> 是不是说smtplib.SMTP() 不支持认证??那该怎么做呢? > >> > >> msg = MIMEText(out) > >> > >> host = "mail.localhost" > >> me = "orciloud tang <orciloud at localhost>" > >> you = "orciloud at gmail.com" > >> subject = "system email" > >> > >> msg['Subject'] = subject > >> msg['From'] = me > >> msg['To'] = you > >> > >> s = smtplib.SMTP() > >> s.connect(host) > >> s.login("orciloud","test") > >> s.sendmail(me, [you], msg.as_string()) > >> s.close() > >> > >> > >> > >> Traceback (most recent call last): > >> File "t.py", line 82, in ? > >> s.login("orciloud","test") > >> File "/usr/local/lib/python2.4/smtplib.py", line 547, in login > >> raise SMTPException("SMTP AUTH extension not supported by server.") > >> smtplib.SMTPException: SMTP AUTH extension not supported by server. > >> > >> > >> > > > > > > > > _______________________________________________ > > python-chinese list > > python-chinese at lists.python.cn > > http://python.cn/mailman/listinfo/python-chinese > > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese >
Zeuux © 2025
京ICP备05028076号