push @parts, Email::MIME->create( attributes => { filename => $filename, content_type => "application/pdf", encoding => "quoted-printable", name => $filename, }, body => io( $opts->{attach_file} )->binary->all, )