Código PHP:
<?php
$email_to = "[email protected], [email protected]";
$email_from = $_POST["email"];
$body = $body."Mensaje de : ".$_POST["nombre"]."\n";
$body = $body."Mail : ".$_POST["email"]."\n";
$body = $body."Teléfono : ".$_POST["tel"]."\n";
$body = $body."------------------------------------------------------------------- \n";
$body = $body."Pais : ".$_POST["pais"]."\n";
$body = $body."Ciudad : ".$_POST["ciudad"]."\n";
$body = $body."------------------------------------------------------------------- \n";
$body = $body.$_POST["mensaje"]."\n";
$body = $body."------------------------------------------------------------------- \n";
$subject = "Contacto Virtual - Dra. Pabon";
mail("$email_to", "$subject", "$body", "From: $email_from");
if ($_POST["copia"] == ON)
{
$email_to = $_POST["email"];
$email_from = "[email protected]";
mail("$email_to", "$subject", "$body", "From: $email_from");
}
?>