大家帮我看看吧?thanks.
lifr1979/feiran 是一个测试帐号
>>> s = smtplib.SMTP()
>>> s.connect("smtp.yeah.net")
connect: ('smtp.yeah.net', 25)
connect: ('smtp.yeah.net', 25)
reply: '220 Coremail SMTP(Anti Spam) System (yeah[040331])
'
reply: retcode (220); Msg: Coremail SMTP(Anti Spam) System (yeah[040331])
connect: Coremail SMTP(Anti Spam) System (yeah[040331])
(220, 'Coremail SMTP(Anti Spam) System (yeah[040331])')
>>> s.helo("yeaho.net")
send: 'helo yeaho.net
'
reply: '250 smtp1
'
reply: retcode (250); Msg: smtp1
(250, 'smtp1')
>>> s.login("lifr1979", "feiran")
send: 'AUTH PLAIN bGlmcjE5NzkAbGlmcjE5NzkAZmVpcmFu
'
reply: '535 CoremailSys:Error: authentication failed
'
reply: retcode (535); Msg: CoremailSys:Error: authentication failed
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "C:Python24libsmtplib.py", line 584, in login
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, 'CoremailSys:Error: authentication failed
')