smtplib upload progress

Guyon Morée guyon.moree at
Tue Oct 20 00:33:50 CEST 2009


I wanted to use smtplib to send a bunch of files. All good, except I
cant monitor the upload progress as far as I can see.

So I monkey patched the SMTP.sendall method, which chops up the data
and keeps calling a provided callback for every chunk of data sent.

This feels kind of dirty and I was wondering what my other options are
to tackle this seemingly simple problem.


Guyon Moree

More information about the Python-list mailing list