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 [EMAIL PROTECTED] 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.lang.python/browse_frm/thread/7d1754c1ead54f33/5b6bd38a049e7f6c?q=mime+email+file+object&rnum=5&hl=en#5b6bd38a049e7f6c > -- http://mail.python.org/mailman/listinfo/python-list