By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,089 Members | 2,418 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,089 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Sep 10 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

<au******@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
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

Sep 11 '05 #2

P: n/a
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

Sep 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.