Click to See Complete Forum and Search --> : Need to 'sendmail' to more admins using csvwrite from ezscripting - Help!


rodd1000
08-10-2009, 05:58 AM
Hi guys, this is the first time i have attempted cgi scripts and i'm having trouble sending newly submitted information via sendmail.

Basically it works fine when sending to one person, but what i want to do is send all new info to 12 seperate email addresses.

I've tested with the below code but i only recieve email from the first my $admin_mail.

my $send_me = 1;
my $admin_mail = 'mail@mail.co.uk';
my $admin_mail = 'mail2@mail2.com';
my $from = 'mail@mail.co.uk';

Could anyone advise me on how to sendmail to more than one admin using this script?

Any help would be much appreciated

rodd1000
08-10-2009, 06:09 AM
Edit: No worries guys figured it out myself. You just add a , between email addys,...Doh!

Thanks!