Subject: | Upgrade generic field to structured address field when adding fields 'To', 'Cc', etc. |
As described in perldoc Mail::Message::Field::Addresses I tried this code:
===
my $cc = Mail::Message::Field−>new(’Cc’);
$cc−>addAddress(’Mail::Box <test@mail.box>’);
$cc−>addAddress( phrase => ’Mail::Box’, email => ’test@mail.box');
===
But it doesn't work.
It would be nice to "upgrade" the field type automatically.