LOS SIGUIENTES CAMPOS SON OBLIGATORIOS, POR FAVOR, VUELVA Y COMPLÉTELOS:
";
if ($Pregunta2 == false ) {
echo "Nombre y Apellido ";
}
if ($Pregunta3 == false ) {
echo "Ocupación ";
}
if ($Pregunta4 == false ) {
echo "Dirección postal ";
}
if ($Pregunta5 == false ) {
echo "Ciudad ";
}
if ($Pregunta6 == false ) {
echo "Código postal ";
}
if ($Pregunta7 == false ) {
echo "Provincia / Estado ";
}
if ($Pregunta8 == false ) {
echo "País ";
}
if ($Pregunta9 == false ) {
echo "Teléfono (Incluya código área) ";
}
if ($Pregunta10 == false ) {
echo "Correo electrónico ";
}
if ($Pregunta11 == false ) {
echo "Motivo de su consulta ";
}
echo "
VOLVER ";
} else {
$submissiondate = date("D dS M, Y h:i a");
$msg .= "Fecha / Hora de envío: $submissiondate\n\n";
$msg .= "- Nombre de la Empresa (optativo): $Pregunta1\n";
$msg .= "- Nombre y Apellido: $Pregunta2\n";
$msg .= "- Ocupación: $Pregunta3\n";
$msg .= "- Dirección postal: $Pregunta4\n";
$msg .= "- Ciudad: $Pregunta5\n";
$msg .= "- CP: $Pregunta6\n";
$msg .= "- Provincia / Estado: $Pregunta7\n";
$msg .= "- País: $Pregunta8\n";
$msg .= "- Teléfono (Incluya código área): $Pregunta9\n";
$msg .= "- E-mail: $Pregunta10\n";
$msg .= "- Motivo de su consulta:\n";
$msg .= "$Pregunta11\n\n";
$cliente = ("cimparato@holliday.com.ar");
$to = "$cliente";
$subject = "Consulta Laboratorio Holliday desde foyel.com - $Pregunta2\n";
$mailheaders = "From: $Pregunta2 <$Pregunta10>\n";
$mailheaders .= "Reply-To: $Pregunta2 <$Pregunta10>\n";
mail($to, $subject, $msg, $mailheaders);
$otromas = ("Ccanizares@holliday.com.ar");
$to = "$otromas";
$subject = "Consulta Laboratorio Holliday desde foyel.com - $Pregunta2\n";
$mailheaders = "From: $Pregunta2 <$Pregunta10>\n";
$mailheaders .= "Reply-To: $Pregunta2 <$Pregunta10>\n";
mail($to, $subject, $msg, $mailheaders);
$foyel = ("foyel@speedy.com.ar");
$to = "$foyel";
$subject = "Consulta Laboratorio Holliday desde foyel.com - $Pregunta2\n";
$mailheaders = "From: $Pregunta2 <$Pregunta10>\n";
$mailheaders .= "Reply-To: $Pregunta2 <$Pregunta10>\n";
mail($to, $subject, $msg, $mailheaders);
echo "
¡Su consulta fue enviada correctamente!
A la brevedad nos pondremos en contacto con usted.";
echo "
Seguir navegando ";
}
// se cierra todo el resto
?>
|