I've got a problem, hopefully somebody here will be able to point me in the right direction.
I'm currently sending the data collected from a form on a website to 10 different email addresses, using FormMail.pl.
Ideally though I would like to send the data only to the appropriate email address. This will be determined by the first half of the 'post code' input value of the form.
Can this be done by modifying the perl script that I am using at the moment, or am I barking up the wrong tree and should be pursuing a different method?
if ($condition eq $your_condition) {
open (MAIL, "¦$mailprog $email1") ¦¦
die("Can't open $mailprog\n");
} else
open (MAIL, "¦$mailprog $email2") ¦¦
die("Can't open $mailprog\n");
} # end if condition
¦-<:)