I am VERY new to PHP. I am trying to fix our website so when a customer selects the city they live in that the request goes to the apropriate email address. Right now it goes to one email address so when I edit that and add in \\mail to the code below with the email address I get an error. PLEASE HELP!!!!!!
if ($errorcheck <> 1){
$text = "A new user wants to join the Pete & Mac's mailing list:\n";
$text .= "\n";
$text .= "Name: $name\n";
$text .= "\n";
$text .= "Address:\n";
$text .= " $address1\n";
$text .= " $address2\n";
$text .= " $city, $state $zip\n";
$text .= " \n";
$text .= "Email: $email\n";
$text .= "\n";
$text .= "\n";
$text .= "Thanks.\n";
//mail("[email protected]", "New mailing list request", "$text","From: $email\r\n");
mail("[email protected]", "New mailing list request", "$text","From: $email\r\n");
}
?>
Welcome!
Join Mailing List
if ($errorcheck == 1){ ?>
//mail("our email address", "New mailing list request", "$text","From: $email\r\n");
//mail("our email address", "New mailing list request", "$text","From: $email\r\n");
}
?>