Hello,

Please apply the following diff to Email::MIME::Kit::KitReader::Dir.

Without it, the pdf attachments are broken if the messages are sent under Windows.

--- D:\usr\site\lib\Email\MIME\Kit\KitReader\Dir.pm Sun Nov  2 14:57:48 2014
+++ D:\usr2\site\lib\Email\MIME\Kit\KitReader\Dir.pm Sun Nov 2 14:53:33 2014
@@ -13,6 +13,7 @@
  my $fullpath = File::Spec->catfile($self->kit->source, $path);

open my $fh, '<', $fullpath or die "can't open $fullpath for reading: $!";
+  binmode $fh;
  my $content = do { local $/; <$fh> };

  return \$content;


And thank you for the module. It is great!

--Octavian

Reply via email to