Hello All -
I am using python to send an email with a large zip file as an
attachment. I successfully sent a 52M attachment. If I try to send a
63M attachment or larger, the message never gets through. I do not
get any errors in my python code. I pasted my python code below.
from email.MIMEBase import MIMEBase
from email.MIMEMulti part import MIMEMultipart
from email import Encoders
import smtplib,os
mssg = MIMEMultipart()
part = MIMEBase('appli cation',"octet-stream")
part.set_payloa d(open(zipFileN ame,"rb").read( ))
Encoders.encode _base64(part)
part.add_header ('Content-Disposition', 'attachment; filename="%s"' %
os.path.basenam e(zipFileName))
mssg.attach(par t)
s = smtplib.SMTP('l ocalhost')
s.set_debugleve l(1)
s.sendmail(from Addr,toAddr,mss g.as_string())
s.quit()
I am using a Fedora Core 6 system with python 2.4.4.
Any suggestions on what could be limiting the attachment size or how I
could troubleshoot this?
Thanks!
EricE
I am using python to send an email with a large zip file as an
attachment. I successfully sent a 52M attachment. If I try to send a
63M attachment or larger, the message never gets through. I do not
get any errors in my python code. I pasted my python code below.
from email.MIMEBase import MIMEBase
from email.MIMEMulti part import MIMEMultipart
from email import Encoders
import smtplib,os
mssg = MIMEMultipart()
part = MIMEBase('appli cation',"octet-stream")
part.set_payloa d(open(zipFileN ame,"rb").read( ))
Encoders.encode _base64(part)
part.add_header ('Content-Disposition', 'attachment; filename="%s"' %
os.path.basenam e(zipFileName))
mssg.attach(par t)
s = smtplib.SMTP('l ocalhost')
s.set_debugleve l(1)
s.sendmail(from Addr,toAddr,mss g.as_string())
s.quit()
I am using a Fedora Core 6 system with python 2.4.4.
Any suggestions on what could be limiting the attachment size or how I
could troubleshoot this?
Thanks!
EricE
Comment