Re: Simple programme - Just want to know whether this is correct way of coding

2009-05-09 Thread Aahz
In article <49f8cb54-f268-46bc-a585-6d116674d...@k19g2000prh.googlegroups.com>, guptha wrote: > >This is my first programme in python ,I need to know whether my code >is in the right path of performance > >I wrote a code using multithreading to send mails Here's the Right Way to do this: install

Re: Simple programme - Just want to know whether this is correct way of coding

2009-05-09 Thread Aahz
In article <7d44d587-15c7-40ea-abe2-6a174f1fd...@q14g2000vbn.googlegroups.com>, namekuseijin wrote: >On May 8, 3:37=A0am, guptha wrote: >> >> The code Works fine ,but I doubt about the performance issue ,My >> intention is to send mails concurrently to large number of mail. >> 1.For every mail i

Re: Simple programme - Just want to know whether this is correct way of coding

2009-05-08 Thread namekuseijin
On May 8, 3:37 am, guptha wrote: > The code Works fine ,but I doubt about the performance issue ,My > intention is to send mails concurrently to large number of mail. > 1.For every mail id i send It creates a new SMTP object,in case, if i > send to 1000 or more ids why should I help a spammer...

Re: Simple programme - Just want to know whether this is correct way of coding

2009-05-08 Thread Steven D'Aprano
On Thu, 07 May 2009 23:37:27 -0700, guptha wrote: > The code Works fine ,but I doubt about the performance issue ,My > intention is to send mails concurrently to large number of mail. 1.For > every mail id i send It creates a new SMTP object,in case, if i send to > 1000 or more ids > a) It o

Re: Simple programme - Just want to know whether this is correct way of coding

2009-05-08 Thread Piet van Oostrum
> guptha (g) wrote: >g> Hi group, >g> This is my first programme in python ,I need to know whether my code >g> is in the right path of performance >g> I wrote a code using multithreading to send mails >g> FROM = 'com' >g> SUBJECT = 'This is the subject' >g> MSGBODY = 'This the body of

Re: Simple programme - Just want to know whether this is correct way of coding

2009-05-08 Thread Dave Angel
guptha wrote: Hi group, This is my first programme in python ,I need to know whether my code is in the right path of performance I wrote a code using multithreading to send mails FROM = 'com' SUBJECT = 'This is the subject' MSGBODY = 'This the body of the message ' MAILSERVER = 'mailco

Re: Simple programme - Just want to know whether this is correct way of coding

2009-05-08 Thread Lie Ryan
guptha wrote: Hi group, This is my first programme in python ,I need to know whether my code is in the right path of performance I wrote a code using multithreading to send mails Can't you use BCC? The code Works fine ,but I doubt about the performance issue ,My intention is to send mails co