I've changed
$url = 'https://80.82.116.160'.$_SERVER['SERVER_NAME'].'/property7/register/verify.php?id='.$lastId.'&token='.$token;
to
$url = 'https://80.82.116.160/property7/register/verify.php?id='.$lastId.'&token='.$token;
Still with the same effect. At least I didn't get any php errors.
The 'verify.php' page was taken from here:
<?php
$conn = mysqli_connect("localhost","root","","registration");
//if(isset($_POST['login'])){
$id = $_GET['id'];
$token = $_GET['token'];
$select = "UPDATE register SET status = 'Active' WHERE id = '$id' AND token = '$token'";
$result = mysqli_query($conn,$select);
if ($result) {
echo "verify successful. you can log in now";
}else{
echo "verify faild";
}
//}
?>
Worth mentioning that my gmail account is added to my mail.yahoo.com page and the link doesn't work if the gmail account is opened via yahoo mail but works when I go to the dedicated gmail web page.