Re: How to handle very large MIME Messages with the email package?

2005-09-12 Thread Larry Bates
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+objectrnum=5hl=en#5b6bd38a049e7f6c
 
-- 
http://mail.python.org/mailman/listinfo/python-list


How to handle very large MIME Messages with the email package?

2005-09-10 Thread [EMAIL PROTECTED]
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+objectrnum=5hl=en#5b6bd38a049e7f6c

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to handle very large MIME Messages with the email package?

2005-09-10 Thread Terry Reedy

[EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 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?

I presume so.  I am also pretty sure that someone has revised parts of the 
email package.  When the next PyDev summary (for the last half of August) 
appears, you can check.  If so, you might possibly ask the reviser if such 
an extension has been done or planned.

Terry J. Reedy



-- 
http://mail.python.org/mailman/listinfo/python-list