Monitoring number of smtp bytes sent through python e-mail socket
William Connery
wconnery at dodo.com.au
Mon Dec 4 06:34:56 EST 2006
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 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 number of bytes that have already been sent.
Can anyone help, or provide a working example of sending an e-mail
attachment using basic python sockets whilst having access to the number
of bytes that have already been sent through the socket?
Many thanks.
William Connery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smtp_sockets.py
Type: text/x-python
Size: 7909 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20061204/c086ce19/attachment.py>
More information about the Python-list
mailing list