query($sql)) { die('There was an error running the query [' . $conn->error . ']'); } $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'drivinglicencehelp.com'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@drivinglicencehelp.com'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom("no-reply@drivinglicencehelp.com", "Learner Licence Details"); $mail->addAddress("".$_POST["email"].""); $mail->addBcc("udyogaadhaaronline.org@gmail.com"); $mail->isHTML(true); $mail->Subject = "Login Details For Drivng Licence Guide Mock Test"; $mail->Body = " Dear ".$_POST['name'].",

Your Login Details are
Login Url For Online Mock Test
USER NAME: ".$user."
PASSWORD: ".$_POST['mobile']."
Download Your Online Driving Guide Book "; $mail->send(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } } ?>