Monitoring number of smtp bytes sent through python e-mail socket

2006-12-09 Thread William Connery
Hi, I have a small python program with e-mail capabilities that I have pieced together from code snippets found on the internet. The program uses the smtplib module to successfully send an e-mail with an attachment. I want to give users an indication of the percentage of the e-mail that has alre

Re: Monitoring number of smtp bytes sent through python e-mail socket

2006-12-05 Thread BJ Swope
BTW, I noticed a bunch of new line characters in your test message. If you ever send mail to a qmail server it will be rejected because rfc 821 says that new line characters cannot occur without a carriage return. So change all those \n's to \r\n's ;) -- We are all slave to our own paradigm. --

Re: Monitoring number of smtp bytes sent through python e-mail socket

2006-12-04 Thread Gabriel Genellina
At Monday 4/12/2006 22:18, William Connery wrote: I want to give users an indication of the percentage of the e-mail that has already been sent so as to avoid frustration when dealing with large attachments or a slow smtp server. But the smtplib module doesn't seem to provide access to the numbe

Re: Monitoring number of smtp bytes sent through python e-mail socket

2006-12-04 Thread Jean-Paul Calderone
On Tue, 05 Dec 2006 12:18:08 +1100, William Connery <[EMAIL PROTECTED]> wrote: >Hi, > >I have a small python program with e-mail capabilities that I have >pieced together from code snippets found on the internet. > >The program uses the smtplib module to successfully send an e-mail with >an attachm

Monitoring number of smtp bytes sent through python e-mail socket

2006-12-04 Thread William Connery
Hi, I have a small python program with e-mail capabilities that I have pieced together from code snippets found on the internet. The program uses the smtplib module to successfully send an e-mail with an attachment. I want to give users an indication of the percentage of the e-mail that has a