query($sql);
if ($result->num_rows === 1) {
$row = $result->fetch_assoc();
}
$mail = new PHPMailer(true);
try {
$mail->isSMTP();
$mail->Host = 'smtp.hostinger.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", "Driving License Registration");
$mail->addAddress("".$row['email_id']."");
$mail->isHTML(true);
$mail->Subject = "Payment Successful For ".$row['form_name']."";
$mail->Body = "
Dear ".$row['applicant_name'].",
Your payment for ".$row['form_name']." is successful.
Your order details are as follows:
APPLICANT NAME: ".strtoupper($row["applicant_name"])."
EMAIL ID: ".strtoupper($row['email_id'])."
MOBILE NUMBER: ".strtoupper($row['mobile_number'])."
AMOUNT PAID: ".strtoupper($row['total_amount'])."
PAYMENT ID: ".strtoupper($row["payment_id"])."
ORDER ID: ".strtoupper($row['order_id'])."
PAYMENT STATUS: PAID
Regards,
Team Processing,
For Order Status: order@drivinglicencehelp.com
";
$mail->send();
$mail->ClearAllRecipients();
$mail->addAddress("no-reply@drivinglicencehelp.com");
$mail->isHTML(true);
$mail->Subject = "Payment Received For ".$row["form_name"]."";
$mail->Body = "
APPLICANT NAME: ".$row["applicant_name"]."
EMAIL ID: ".$row['email_id']."
MOBILE NUMBER: ".$row['mobile_number']."
AMOUNT PAID: ".$row['total_amount']."
PAYMENT ID: ".$row["payment_id"]."
ORDER ID: ".$row['order_id']."
PAYMENT STATUS: Paid
";
$mail->send();
}
catch (Exception $e) {
echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
}
?>
Login Url: | Click Here To Login On Driving Licence Guide Quiz Portal |
---|---|
Login Details Given Below: | |
Username: | '.$user.' |
Password: | '.$password.' |
Login details are also mailed on your registered email id | |
Now you are eligible to give free mock test for driving licence guide online on our website |