Sending emails with sendmail doesn't work for large emails

Posted by Guy on Stack Overflow See other posts from Stack Overflow or by Guy
Published on 2010-06-13T08:02:27Z Indexed on 2010/06/13 8:12 UTC
Read the original article Hit count: 217

Filed under:
|
|
|

I'm using python's sendmail in the following way:

msg = <SOME MESSAGE>
s = smtplib.SMTP('localhost')
s.sendmail(me, you, msg.as_string())
s.quit()

This usually works fine but it fails when the message is pretty big (around 200 lines). Any ideas what can cause this?

© Stack Overflow or respective owner

Related posts about python

Related posts about email