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

T

Terry Reedy

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
 
L

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top