RECAPTCHA_V3_SECRET_KEY, 'response' => $token))); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $arrResponse = json_decode($response, true); if ($arrResponse["success"] == '1' && $arrResponse["action"] == $action && $arrResponse["score"] >= 0.5) { //FIN VALIDACION RECAPTCHA $existe_email = $mysqli->query(" SELECT id, nombre, email FROM usuario_web WHERE email='" . $email . "' "); if ($existe_email->num_rows > 0) { header('Location: registro.php?error=Este email ya se encuentra registrado'); } else { $result = $mysqli->query(" INSERT INTO usuario_web (nombre, email, clave, hash) VALUES ( '" . decodificar($nombre) . "', '" . decodificar($email) . "', '" . hashPassword($password) . "', '" . time() . "' ) "); $id = $mysqli->insert_id; $titulo = 'Registro en ' . $nombre_empresa; $url_activar = '' . $url_instalacion . 'suscripcion/registro-confirmacion.php?id=' . $id . '&t=' . time(); $mensaje = '
' . $nombre_empresa . '

ACTIVAR TU CUENTA

¡Hola ' . $nombre . '!

Gracias por tu registro, para finalizar con el mismo por favor verifica tu cuenta realizando clic en el siguiente botón

Verificar cuenta

Si no puede ver el botón copie y pegue el siguiente enlace en su navegador:

' . $url_activar . '


Gracias por elegir nuestros servicios

El equipo de ' . $nombre_empresa . '

'; $php_email = new PHPMailer(); $php_email->CharSet = 'UTF-8'; $php_email->From = $php_email_Username; $php_email->FromName = html_entity_decode($nombre_empresa); $php_email->Subject = html_entity_decode($titulo); $php_email->Body = html_entity_decode($mensaje); //autentificacion if ($php_email_autentificar == 'si') { $php_email->IsSMTP(); //$php_email->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only $php_email->Host = $php_email_Host; $php_email->Port = $php_email_Port; $php_email->SMTPSecure = $php_email_SMTPSecure; $php_email->SMTPAuth = $php_email_SMTPAuth; $php_email->Username = $php_email_Username; $php_email->Password = $php_email_Password; } //Fin autentificacion //$php_email->AddReplyTo($email, decodificar($_POST["nombre"])); $php_email->IsHTML(true); $php_email->AddAddress($email); //$php_email->AddAddress( 'imartinez@creadoresdesitios.com.ar' ); if ($php_email->Send()) { header('Location: registro-confirmacion.php?id=' . $id); } else { header('Location: registro.php?error=No se pudo enviar el email de verificacion'); } } //*/ } } } ?> Suscribite
suscripcion

Completá tus datos y activá tu cuenta.