I'm trying to create a hyperlink that sends together with the E-mail. I've tried to find information on how to do this but I keep hitting a brick wall.
The third $message. variable should have a hyperlink but I dont seem to make it work. How do I make a hyperlink out of the third $message. variable and how do I include it in the mail function?
The PHP code for sending mail and hyperlink
$confirm_code=md5(uniqid(rand()));
$from=$_POST['minemail'];
$email=$_POST['kanemail'];
$subject=$_POST['subject'];
$message=$_POST['message'];
$message.="<br>Klicka på den här länken för att påbörja provet\r\n";
$message.="welcomeuser.php?passkey=$confirm_code"; //hyperlink
$company="dashboardcompany.php";
$sql= "INSERT INTO temp_members_db(confirm_code, email) VALUES('$confirm_code', '$email')";
$result=$connect->query($sql);
mail($email, $subject, $message, "Från: ".$from);
print "Ditt meddelande har skickats: <br>$email<br>$subject<br>$message<br>";