Gossamer Forum
Home : General : Perl Programming :

Form Mail

Quote Reply
Form Mail
Anybody know how to send a form to multiple recipients? I already tried cc-recipient(that works for 1 cc) and I tried to seperate the e-mail addresses with commas but that did not work. I am using the form mail code at Matt's script archives.

Quote Reply
Re: Form Mail In reply to
Not sure how Matt's is set up, but you can change it to this setup:

$recipient = 'something@something.com, something@something.com, something@something.com';

open (MAIL, "|$mailprog -t") or die("Can't access $mailprog!\n");
print MAIL "To: $recipient\n";
blah, blah....

That's how I write mine anyway..