NNTP Post a file
Erik Max Francis
max at alcyone.com
Thu May 3 22:44:46 EDT 2001
Daniel wrote:
> For all of you who want to share my experiences, here's the code + the
> message:
>
> Python code:
> import nntplib
>
> print "start"
> s = nntplib.NNTP('news.skynet.be')
> f=open('c:/temp/mymsg.txt')
> s.post(f)
> s.quit
Note that you meant s.quit() here.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ The little I know, I owe to my ignorance.
\__/ Sacha Guitry
7 sisters productions / http://www.7sisters.com/
Web design for the future.
More information about the Python-list
mailing list