in reply to Net::SMTP and Arrays

If you type in all the addresses on one line, even as a csv list, what you'll get is all the input addresses as the first element of the @addresses array.
This is not going to work. You need to

(@addresses) = split(/,/ $usermail);

and enter them as a csv list on the cmd line.

Otherwise, loop around the push(), entering each addr on a new line, until you've done them all, then proceed.

Replies are listed 'Best First'.
Re^2: Net::SMTP and Arrays
by raj8 (Sexton) on Mar 23, 2008 at 02:39 UTC
    Thank you. After you pointed that out..it dawned on me that yes..all of the addresses were one (1) element in the array ;-) I split everything thing up and it worked. Thanks again.