Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, I'm having a set users in a array whom i need to send a mail using MI +ME::Lite, I'm using the below code but facing an error as can't extra +ct address. Am I doing anything wrong. my @arr = qw( 'abc' 'efg' 'xyz'); my $users = undef; foreach (@arr){ $users.= '$_.@gmail.com', } #print $users my $subject ="hai team this is a test mail"; my $msg=MIME::Lite->new( From =>'admin@xyz.com', To => $users, Subject =>'Test mail Pl ignore!!!', Type =>'multipart/mixed'); $msg->attach(Type =>'TEXT', Data => $subject); MIME::Lite->send('smtp', $mail_host, Timeout=>60); $msg->send; print " Hai";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sending mail to multiple users using MIME
by hipowls (Curate) on Jan 25, 2008 at 08:39 UTC | |
by Ultra (Hermit) on Jan 28, 2008 at 09:21 UTC | |
|
Re: Sending mail to multiple users using MIME
by Corion (Patriarch) on Jan 25, 2008 at 07:13 UTC |