|Pathologically Eclectic Rubbish Lister|
Re^3: Sending Email to a list of people using Mail::Senderby wfsp (Abbot)
|on Aug 14, 2011 at 15:45 UTC||Need Help??|
I think what I would do is first write a small test script to see if the config file was being read correctly. Something like (using your config file)
As you can see, the To key holds an array ref. Which is, apparently, what Mail::Sender requires.
If the output is indeed as you expect I would consider a second test script which just sends a dummy email to those email addresses.
This approach has many advantages. You take on one problem at a time (which is my top limit :-) and you end up with a collection of subs you are confident with. Also, if you hit a particular snag with one of the subs you have a simple script that you can post here and which monks can download and run. This approach, in my experience, will result in a lot more help and solutions.
Try the script above. If it appears ok, write your test_send_email and see if that's ok.
If there are still snags, you know where we live. :-)