Thank you. Yes, using base64 worked fine. I just copied "quoted-printable" from the POD doc of Email::MIME.

--Octavian

----- Original Message ----- From: "Eric Wong" <normalper...@yhbt.net>
To: "Octavian Rasnita" <orasn...@gmail.com>
Cc: <pep@perl.org>
Sent: Sunday, November 16, 2014 9:29 AM
Subject: Re: Where is the attached file opened with Email::MIME?


Octavian Rasnita <orasn...@gmail.com> wrote:
       Email::MIME->create(
           body => $pdf,
           attributes => {
               content_type => "application/pdf",
               name => "bogus-report.pdf",
               filename => "bogus-report.pdf",
               encoding     => "quoted-printable",

Can you try "base64" instead of "quoted-printable" for the
attachment?  For largely non-ASCII data (such as PDF),
base64 will be smaller.

Reply via email to