in reply to Re^2: Sending email
in thread Sending email
You don't show it here, but in your OP you have:
my $tostring = join ',', @to;
There's not enough of your code in one place, but I'd suggest changing
to => [$tostring]
to something closer to
to => [@to]
The '[...]' construct creates an anonymous array reference. Between '[' and ']', you can put a single scalar or a list of scalars:
[$scalar1] # OK [$scalar1, $scalar2] # OK ["$scalar1, $scalar2"] # NOT OK ['$scalar1, $scalar2'] # NOT OK
— Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Sending email
by frank1 (Monk) on Jul 22, 2023 at 16:44 UTC |