[BangPypers] pdf attachment in mail

VIJAY KUMAR vnbang2003 at yahoo.com
Wed Oct 1 06:38:10 CEST 2008


Hi All,
           Am facing problem with pdf attachment in mail. I have created pdf when i try to read it code look like below.
               pdf=self.getTfmPdf()
               attachment.set_payload(pdf.read())
               Encoders.encode_base64(attachment)
               attachment.add_header('Content-Disposition', 'attachment', filename=filename)
            I get  "AttributeError: "PDFTfm instance has no attribute 'read'"  -    where PDFTfm is class for pdf creation.
           when I print  pdf I see <PDFTfm instance at 0xb60369cc>
           Can some one please help me in this.



Cheers,
 Vijay 


      Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/bangpypers/attachments/20081001/da017224/attachment.htm>


More information about the BangPypers mailing list