Subject: | Email::Sender::Simple::sendmail doubles empty lines |
Sending an Email with Email::Sender::Simple::sendmail() doubles empty lines. The attached script is a simple example that can reproduce it. "a\nb" arrives as "a\nb", but "a\n\nb" arrives as "a\n\n\nb".
I observed this on Debian Wheezy (perl 5.14.2) with exim as MTA, no idea if that matters.
Subject: | email.pl |
use 5.014;
use strict;
use warnings;
use Email::Simple;
use Email::Sender::Simple qw/sendmail/;
my $email = Email::Simple->create(
header => [
From => 'mlenz@noris.de',
To => 'mlenz@noris.de',
Subject => 'Empty lines are doubled',
],
body => "a\n\nb",
);
say $email->as_string;
sendmail($email);