Subject: | MIME::Lite can not send to multiple people via SMTP if a list reference is used to specify the 'To' |
The send_by_smtp function only takes the first entry of the list
reference passed to the constructor's 'To' field. However, if a single
string that contains the addresses is used and not a list reference, the
function will send to all parties.
This looks to be caused by the 'scalar' function when setting the
@hdr_to list
my @hdr_to = extract_only_addrs( scalar $self->get('To') );
The POD of MIME::Lite explicitly states that the 'To' field can be a
string or a list reference of strings. So it is implied that all the
addresses listed in the reference will be processed to get the message
that is being sent.