0
Good afternoon, I recently entered an email confirmation system for users who are signing up and it is working perfectly, however I want the users already registered confirm tbm but when I tried to use the msm system I did not succeed... alg can take a look?
<?php
$email = $_POST['email'];
$email2 = $_POST['email'];
$user = $_POST['user'];
$servidor = "localhost";
$usuario = "root";
$senha = "";
$dbname = "teste";
//Criar a conexao
$conn = mysqli_connect($servidor, $usuario, $senha, $dbname);
$result_leados = "INSERT INTO leados (email) VALUES ('$email')";
$resultado_leados = mysqli_query($conn, $result_leados);
$leado_id = mysqli_insert_id($conn);
$valor_chave = md5(date('Y-m-d H:i'));
$link = "http://localhost/Mail/baixar.php?chave=".$valor_chave;
$result_links_emaos = "INSERT INTO links_emaos (link, leado_id) VALUES ('$valor_chave', '$leado_id')";
$resultado_links_emaos = mysqli_query($conn, $result_links_emaos);
It can explain better the exact one would be "confirm the already registered users"?
– Woss
wanted them to confirm that this email actually exists by sending a confirmation email to the registered email
– Thiago Sousa
And when should this email be sent? Will the user access the system? Or will it be sent to everyone automatically? How do you differentiate users who have already checked the email? By the way, the code you posted does not seem to send any email; what would be this code?
– Woss