in reply to Re^4: email pdf file - file damaged
in thread email pdf file - file damaged
But tweaked it to use base64 and it works fine now:push @parts, Email::MIME->create( attributes => { filename => $filename, content_type => "application/pdf", encoding => "quoted-printable", name => $filename, }, body => io( $opts->{attach_file} )->binary->all, )
push @parts, Email::MIME->create( attributes => { filename => $filename, content_type => "application/pdf", encoding => "base64", name => $filename, }, body => io( $opts->{attach_file} )->binary->all, )
|
---|