![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
01/07/2008, 21:08
|
| | Fecha de Ingreso: junio-2008
Mensajes: 25
Antigüedad: 16 años, 7 meses Puntos: 0 | |
Respuesta: Enviar mensaje a 2 ó mas destinatarios esta funcion te revisa que el mail sea válido y exista. ojala sirva
// funcion valida email
function validar_email($email){
$exp = "^[a-z\'0-9]+([._-][a-z\'0-9]+)*@([a-z0-9]+([._-][a-z0-9]+))+$";
if(eregi($exp,$email)){
if(checkdnsrr(array_pop(explode("@",$email)),"MX") ){
return true;
}else{
return false;
}
}else{
return false;
}
} |