Attachment Size and SMTP EMail

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eric E

    Attachment Size and SMTP EMail

    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
  • Grant Edwards

    #2
    Re: Attachment Size and SMTP EMail

    On 2008-09-23, Eric E <eric.e.janke@g mail.comwrote:
    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.
    Does sending large attachements with other SMTP clients using
    the same SMTP server work?

    --
    Grant Edwards grante Yow! Zippy's brain cells
    at are straining to bridge
    visi.com synapses ...

    Comment

    • Eric E

      #3
      Re: Attachment Size and SMTP EMail

      On Sep 23, 9:52 am, Grant Edwards <gra...@visi.co mwrote:
      On 2008-09-23, Eric E <eric.e.ja...@g mail.comwrote:
      >
      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.
      >
      Does sending large attachements with other SMTP clients using
      the same SMTP server work?
      >
      --
      Grant Edwards grante Yow! Zippy's brain cells
      at are straining to bridge
      visi.com synapses ...

      I do not know for sure. I recently downloaded msmtp 1.4.16 and am
      still in the process of trying to get it to work.

      Comment

      Working...