query($sql); $row = $result->fetch_assoc(); $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'msmeregistrar.net'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@msmeregistrar.net'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom("no-reply@msmeregistrar.net", "MSME Registrar"); $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.
Applicant Name:
'.strtoupper($row["applicant_name"]).'
|
Email:
'.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, |