in reply to sending to multiple recipients with Net::SMTP
The to() method can take a list of addresses. So don't try to put multiple addresses into one string, just pass them in as separate strings:
or$smtp->to($address1, $address2, ... );
@addrs = ("me\@testserver.com","someone\@elsewhere.com"); $smtp->to(@addrs);
I think you can also do $smtp->to(...) multiple times, for the same effect, but I could be remembering that wrong.
Oh, and don't forget to escape the @ in a double-quoted string...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sending to multiple recipients with Net::SMTP
by nimdokk (Vicar) on Nov 08, 2004 at 13:45 UTC | |
by muntfish (Chaplain) on Nov 08, 2004 at 13:52 UTC | |
by nimdokk (Vicar) on Nov 08, 2004 at 16:28 UTC | |
|
Re^2: sending to multiple recipients with Net::SMTP
by Anonymous Monk on Nov 08, 2004 at 13:48 UTC |