camaleon
May 12th, 2006, 11:29 AM
Hi Guys.
well i have a php form mail script. that work perfect!!!!, but i want that the form is received in two emails. mymail@aaa.com and mymail2@aaa.com
i want a copy of the form send to my second address.
check the code!!
<?php
$sendTo = "mymail@aaa.com";
$subject = "web form";
$headers = "From: " . $_POST["nombre"];
$message = $_POST["email"] . "\n";
$message .= $_POST["cuerpo"] . "\n";
$nombre = $_POST["nombre"];
mail($sendTo, $subject, $message, $nombre, $headers);
echo "estado=message send!";
?>
regards.
well i have a php form mail script. that work perfect!!!!, but i want that the form is received in two emails. mymail@aaa.com and mymail2@aaa.com
i want a copy of the form send to my second address.
check the code!!
<?php
$sendTo = "mymail@aaa.com";
$subject = "web form";
$headers = "From: " . $_POST["nombre"];
$message = $_POST["email"] . "\n";
$message .= $_POST["cuerpo"] . "\n";
$nombre = $_POST["nombre"];
mail($sendTo, $subject, $message, $nombre, $headers);
echo "estado=message send!";
?>
regards.