Subject: | recipient/sender not recognised unless fully qualified |
I was just trying out a variation of the example in
Email::Sender::Manual::QuickStart. I want to mimic this:
Show quoted text
> mailx daxim
Subject: foo
bar
^D
EOT
That gets delivered to the local system. However, the following program
throws "no recipients"/"no sender".
use Email::Simple qw();
use Email::Simple::Creator qw();
use Email::Sender::Simple qw(sendmail);
use Email::Sender::Transport::Mbox qw();
my $email = Email::Simple->create(
header => [
To => 'daxim',
From => 'daxim',
Subject => 'foo',
],
body => 'bar',
);
sendmail($email, {transport => Email::Sender::Transport::Mbox->new()});
The fault lies in Email::Address->parse.