function enviaMail($nom,$email,$tel,$mens){
$cuerpo ="Formulario enviado por pagina web\n";
$cuerpo .="Nombre: " .$nom."\n";
$cuerpo .="Email: " .$email."\n";
$cuerpo .="Telefono: " .$tel."\n";
$cuerpo .="Mensaje: " .$mens."\n";
//**************************************
//AQUI DEBEN CAMBIAR LA DIRECION DE MAIL
//**************************************
mail("info@vittori.com.uy,jorgealfaro@adinet.com.uy","Formulario recibido en pagina web",$cuerpo);
echo "
Gracias por enviar su consulta, le responderemos a la brevedad.
";
}
function comprobar_email($email){
$mail_correcto = 0;
if ((strlen($email) >= 6) && (substr_count($email,"@") == 1) && (substr($email,0,1) != "@") && (substr($email,strlen($email)-1,1) != "@")){
if ((!strstr($email,"'")) && (!strstr($email,"\"")) && (!strstr($email,"\\")) && (!strstr($email,"\$")) && (!strstr($email," "))) {
if (substr_count($email,".")>= 1){
$term_dom = substr(strrchr ($email, '.'),1);
if (strlen($term_dom)>1 && strlen($term_dom)<5 && (!strstr($term_dom,"@")) ){
$antes_dom = substr($email,0,strlen($email) - strlen($term_dom) - 1);
$caracter_ult = substr($antes_dom,strlen($antes_dom)-1,1);
if ($caracter_ult != "@" && $caracter_ult != "."){
$mail_correcto = 1;
}
}
}
}
}
return $mail_correcto;
}
?>