Peter Hansen wrote: > 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('no_such_address at mail.ru', 'jonhe... at gmail.com', '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) > Oops. Documentation bug. Fortunately it looks like it's been fixed in response to bug 1217513. Thanks for the tip, Peter. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4