in reply to Sending Email to a list of people using Mail::Sender
Your "working code" doesn't. You:
In addition there is no need to interpolate variables into strings where only the contents of the variable is required (to => "$To", for example). Better to simply use the variable (to => $To,).
One thing that would give a heads up for most of those issues is to always use strictures (use strict; use warnings; - see The strictures, according to Seuss).
|
|---|