in reply to Sending Email to a list of people using Mail::Sender

and, maybe...
use feature qw(say); while (<TESTFILE>){ next if !~ m/^To\s*=\s*(.*)/; say "To = <$1>"; }
instead:
foreach $Line (<TESTFILE>) { if ($Line =~ m/To\s*=\s*(.*)/) { $To = $1; print "To = <$To>\n"; } }