> It looks like the script is mis-using the Net::SMTP module. Instead > of: > > foreach $to (@ARGV) > { > $smtp->to($to); > } > > The documented *correct* method of specifying recipients is: > > $smtp->to(@ARGV); > > My guess is that every call to the to() function resets the list of > recipients, thus each mail will only ever be sent to a single > recipient: the last one.
I tried $smtp->to(@ARGV) and $smtp->to(join (",", @ARGV)), but neither of them works. Still only the first recipient on the list receives messages It could be other errors in the script, I guess. I think I should follow Kyle's suggestion and use some more reliable ways. Thanks, Derek