Hi Vijay,
If you need help, make sure you post some
more context here. We cannot help without knowing
how and where you are trying to do this, which email
module you are using etc.
If it is an open source code, you can post it
or point out the location. If it proprietary, post enough
context so that others can figure things out.
--Anand
On Wed, Oct 1, 2008 at 10:08 AM, VIJAY KUMAR <[EMAIL PROTECTED]> wrote:
>
> 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
> ________________________________
> Add more friends to your messenger and enjoy! Invite them now.
> _______________________________________________
> BangPypers mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/bangpypers
>
>
--
-Anand
_______________________________________________
BangPypers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/bangpypers