cocl04 has asked for the wisdom of the Perl Monks concerning the following question:
All, I am trying to pass a list of email addresses from an array to Mail::Sender. I have tried putting comma between them, single quotes at the end, double quotes at the end and nothing. I can't seem to get it to work. I have dumped the data via DATA::DUMPER and it is fine. I can print the data and it is fine. I have an old project where I send an array of attachement. And it works fine. But the To => syntax does not seem ot work the same. Does anyone have any ideas? The data is in an the array @rd_list. I have also tried \@rd_list which worked for the array of attachements.
$sender->MailFile( { to => @rd_list, subject => 'Test', msg => "All, Please ignore this email! This is a test. Thanks, cc\n", file => $complete_file_path, }); $sender->Close;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Mail::Sender Distribution List
by jethro (Monsignor) on Oct 08, 2009 at 14:53 UTC | |
Re: Mail::Sender Distribution List
by roboticus (Chancellor) on Oct 08, 2009 at 14:56 UTC | |
by cocl04 (Sexton) on Oct 08, 2009 at 20:28 UTC | |
Re: Mail::Sender Distribution List
by hominid (Priest) on Oct 08, 2009 at 14:49 UTC |