Steve Holden wrote:
> n00m wrote:
> 
>> I also can't get my SMTP (win2k) working with Python.
>> But... funnily this works fine:
>>
>> import smtplib
>> s = smtplib.SMTP('smtp.mail.ru')
>> s.sendmail('[EMAIL PROTECTED]', '[EMAIL PROTECTED]', 'hi
>> there!')
>> s.quit()
>>
> That's pretty strange: the second argument should be a list. Are you 
> *sure* it worked?

No longer required (as of at least Python 2.3 if not earlier).

"to_addrs     : A list of addresses to send this mail to.  A bare string 
will be treated as a list with 1 address."  (from smtplib.py sendmail() 
docstring)

-Peter
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to