As you have in your php script
PHP Code:
mail (
"info@casariegoart.com",
"via website (EN)",
"
Name: ".$_POST['name']."
E-mail: ".$_POST['email']."
Message: ".$_POST['message']."
",
"From: ".$_POST['name']." <".$_POST['email'].">");
just simply add another one somewhere else in the script. So it will look almost like the following:
PHP Code:
$to1 = "me@mydomain.com"; //your email address
$to2 = $_REQUEST["email"]; //the email address entered in the form
$subject1 = "Form mail script"; //subject for the email going to you
$subject2 = "Thank you for submitting the form"; /*subject for the confirmation email*/
$message1 = "This is the message you will recieve."; //self-explained
$message2 = "This is the message going to the person who submitted the form"; //self-explained
$headers = "From: My Website <noreply@mydomain.com>";
mail($to1, $subject1, $message1, $headers); //this one goes to you
mail($to2, $subject2, $message2, $headers); //this one goes to the other person.
Hope this kinda explains it. If not let me know and I'll try to incorporate it with the script you already have set up.
Bookmarks