> > Thanks for the response but that doesn't seem to work either. > Maybe it would be easier just to create a distribution list > on the email server and just put that address in my script. >
It doesn't work, looping over an array does not work? for(@emaillist) { # pipe $_ to qmail inject like you do now here } You might also want to try a module that doesn't rely on an external program's argument syntax but does an SMTP session directly. (don't get em wrong qmail rocks but you should avoid avoid external program when ever possible to make your code more portable, reliabel;, etc etc) Try Mail::Sender it is very sexxy. You can use a commas separated list of address in one variable as your To field. HTH DMuey -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>