Changed url email. Now default to PHP built-in serve

r
This commit is contained in:
Claudio Maggioni 2017-05-23 19:58:04 +02:00
parent 0b10b5ebb1
commit a6b5fb833b

View file

@ -37,7 +37,7 @@ if (isset($_POST['register'])) {
$ris = @mysqli_query($conn, $query) or die('Errore');
$message = "Benvenuto!\r\nPer registrarti, vai al link:\r\n\r\nhttp://"
.'phpinfo.localhost/sito/register.php?tok='.htmlspecialchars($tok)
.'localhost:'.$_SERVER['SERVER_PORT'].'/register.php?tok='.htmlspecialchars($tok)
.'&user='.htmlspecialchars($usr);
mail($email, 'Registrati', $message);