Código PHP:
@mysql_query("SELECT 'usuario', 'password2', 'email' FROM 'usuarios' WHERE email = '$email1'");
$getEmail = mysql_query($query);
$row = mysql_fetch_assoc($getEmail);
//Componemos el mensaje
$email1= $_POST['email'];
$server_name = "nolopongo.com";
$person_name = $row['usuario'];
$person_pass = $row['password2'];
$person_email =$row['email'];
$header = "MIME-Version: 1.0\n";
$header .= "Content-Type: text/html; charset=iso-8859-1\n";
$header .="From: berto1989@$server_name\nX-Mailer: PHP/";
$mensaje = "hola";
mail($person_email,"Recuperacion datos Cuenta",$mensaje,$header);
echo "Mensaje enviado.";
}
}
?>