Aguarde um momento...
				
					<?php // Captura o e-mail da URL
$email = isset($_GET['email']) ? trim($_GET['email']) : '';

if ($email && filter_var($email, FILTER_VALIDATE_EMAIL)) {
    // Caminho para salvar o e-mail
    $filePath = __DIR__ . '/../capturado/email-capturado.txt';

    // Adiciona o e-mail ao arquivo com quebra de linha, se ainda não existir
    $emailsExistentes = file_exists($filePath) ? file($filePath, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES) : [];

    if (!in_array($email, $emailsExistentes)) {
        file_put_contents($filePath, $email . PHP_EOL, FILE_APPEND | LOCK_EX);
    }

    echo "<p>Email capturado com sucesso: <strong>" . htmlspecialchars($email) . "</strong>";
} else {
    echo "<p>Nenhum e-mail válido encontrado.</p>";
}
?&gt;