I have found that the SmtpWriter class "hides" all the
complexity in creating emails like you want to send.
It accepts a list of filenames that will be attachments
to the email you generate.
Check it out here:
http://motion.sourceforge.net/related/send_jpg.py
As an aside. Email was not really designed to send
messages this large and is VERY inefficient at sending
something that large. Most SMTP servers won't accept
email messages larger than 4Mb. Are you sure that this
is the best approach to solving your problem? You
should probably be using ftp instead. It is a much
better way to send 100Mb files.
Larry Bates
au******@gmail.com wrote:
Looking at the email package, it seems all the MIMExxx classes takes
string but not file object as the payload. I need to handle very large
MIME messages say up to 100M. And possibly many of them. Is email
package sufficient. If not is it possible to extend it?
Looking at a previous thread it seems the standard library is not
sufficient.
http://groups.google.com/group/comp....6bd38a049e7f6c