I wrote a little email rocovery script for experience I was wondering how I would go about putting a link in there. heres part of my code. this isn't required but I would just like to know for future knowledge.
$mailto = $id;
$mailsubject = "Your Password";
$mailbody = "Your login password is '$Password' \n";
//website is to my schools server i'm using.
//Link:http://158.583.43.185/ttt/f/login.html(not the real link but similar.
//$mailbody = "Link to website.";
$mailheader = "From: Site administrator\r\n";
if(!mail($mailto, $mailsubject, $mailbody, $mailheader))
{
echo "<p>Mail not sent for unknown reason </p>";
}
else {
echo"<p>Your password successfully sent!</p>";
echo '<a href="login.php">Login</a>';
}
}