View Full Version : Routing e-mail based on which box is checked.
leesco
12-12-2002, 03:06 PM
Currently I use formMail to process all of my form submissions, but I would like to automate the process a bit more, if possible. I would like to have the info submitted by the form e-mailed to separate e-mail addresses depending on which box is checked (adding a list of e-mail addresses.) What would be the best way to go about doing this?
ACJavascript
12-13-2002, 12:26 AM
You could do something like this..
_______________________
of course you need to setup the rest of the script this is just a part..
_________________________
@Emails =("first@Email.com","Second@Email.com","Third@Email.com");
foreach $Addy (@Emails){
if($FORM{$Addy} == 1){
$emailaddy = "$Addy";
}
}
open(MAIL"|mailProgram") || print "Can't open the mail program\n";
print MAIL "To:$emailaddy\n";
ect.......
__________
Not sure if it will work,, it just came to me ,,, Hope it helps :D
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.