query($sql); $row = $result->fetch_assoc(); $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'udyamonlineregistration.org'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@udyamonlineregistration.org'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom("no-reply@udyamonlineregistration.org", "Udyam Registration"); $mail->addAddress("".$row['email_id'].""); $mail->isHTML(true); $mail->Subject = "Payment Failed For ".$row['form_name'].""; $mail->Body = ' Dear '.$row['applicant_name'].',

This mail is in reference to the '.$row['form_name'].' submitted by you on '.date("Y-m-d H:i:s").'

Processing of your '.$row['form_name'].' Is on hold, due to NON PAYMENT of fees.

We request you to complete the payment at the earliest to enable us to process your application. Click on the link below to make payment.
Pay Here

Regards,
Team Processing,
For Order Status: order@udyamonlineregistration.org '; $mail->send(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } ?>