Re: sending mailing list with smtplib

2006-08-16 Thread 3KWA
3KWA wrote: > Just for education purposes (mine I guess :P) what was the idea behind > that design decision? >From the doc (self education :P) The following methods implement a mapping-like interface for accessing the message's RFC 2822 headers. Note that there are some semantic differences bet

Re: sending mailing list with smtplib

2006-08-15 Thread 3KWA
Filip Salomonsson wrote: > > You can reuse your message object, but you need to delete the old > header before setting a new one: > > Thanks! I am only an occasional Python programmer (love it though). I guess it is the first time I

Re: sending mailing list with smtplib

2006-08-15 Thread Filip Salomonsson
On 15 Aug 2006 13:41:53 -0700, 3KWA <[EMAIL PROTECTED]> wrote: > What would be the best way to go about it then? Instantiate a new msg > in the loop? > > I guess I must read the doc more carefully, thanks for your time (if > you can spare some more I would be grateful). You can reuse your message

Re: sending mailing list with smtplib

2006-08-15 Thread 3KWA
Steve Holden wrote: > OK, now the problem is that you clearly aren't running the code you > posted, you are running *somethinglike* the code you posted, but that > has (an) error(s) the code you posted didn't. All I did was changed the comments to make them more relevant to my problem but here it

Re: sending mailing list with smtplib

2006-08-15 Thread Steve Holden
3KWA wrote: > Gabriel Genellina wrote: > >>Specify "didn't work" at least... see >>http://www.catb.org/~esr/faqs/smart-questions.html > > > Ooops, didn't work explained (the worst is I bought and read ESR's book > :() > > list.txt= > email1 > email2 > email3 > > emailn > > email1 received

Re: sending mailing list with smtplib

2006-08-15 Thread 3KWA
Gabriel Genellina wrote: > > Specify "didn't work" at least... see > http://www.catb.org/~esr/faqs/smart-questions.html Ooops, didn't work explained (the worst is I bought and read ESR's book :() list.txt= email1 email2 email3 ... emailn email1 received from:xsbar.com to:email1 subject: [xsbar]

Re: sending mailing list with smtplib

2006-08-14 Thread Gabriel Genellina
At Monday 14/8/2006 10:22, 3KWA wrote: # ... but the actual message sending in a loop to send one email each (didn't work) Specify "didn't work" at least... see http://www.catb.org/~esr/faqs/smart-questions.html Gabriel Genellina Softlab SRL ___

sending mailing list with smtplib

2006-08-14 Thread 3KWA
Hi all, I tried to send a small mailing list using python today (2036 emails). For that purpose I looked in the doc for some code examples (I had never done it before). And I ended up writing and running this little script: # list.txt is a text file container an email per line fp=open('list.txt',