Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: email pdf file - file damaged

by madison.sacd (Novice)
on May 07, 2007 at 07:55 UTC ( [id://613901]=note: print w/replies, xml ) Need Help??


in reply to Re^3: email pdf file - file damaged
in thread email pdf file - file damaged

Thanks, Corion. After I changed to use "base64". It works fine now. The reason I used "quoted-printable" is that the example code on cpan is written like this. It seems not working now. Again, thank you so much.

Replies are listed 'Best First'.
Re^5: email pdf file - file damaged
by ultranerds (Hermit) on Mar 29, 2019 at 11:55 UTC
    I know this is a SUPER old thread - but THANK YOU! I was wondering why my attached PDF was coming up with an error about the font not being accessible. I was doing:
    push @parts, Email::MIME->create( attributes => { filename => $filename, content_type => "application/pdf", encoding => "quoted-printable", name => $filename, }, body => io( $opts->{attach_file} )->binary->all, )
    But tweaked it to use base64 and it works fine now:
    push @parts, Email::MIME->create( attributes => { filename => $filename, content_type => "application/pdf", encoding => "base64", name => $filename, }, body => io( $opts->{attach_file} )->binary->all, )


    Would never have thought of that!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://613901]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2025-11-11 01:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (67 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.