HEX
Server: Apache
System: Linux sg2plzcpnl509433.prod.sin2.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: qhl5pt3kkb1d (10888259)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/qhl5pt3kkb1d/public_html/tstp-old/inquiry_mail.php
<?php
$name = $_POST['student_name'];
$email = $_POST['email'];
$phone = $_POST['number'];
$inquiry_by = $_POST['inquiry_by'];
$year = $_POST['year'];
$sc_co = $_POST['sc_co'];
$courses = $_POST['courses'];
$class_type = $_POST['class_type'];
$exam_date = $_POST['exam_date'];
$time = $_POST['time'];
$message = $_POST['your-message'];

$sender_email = "info@tstp.in";
$to_email = "shahloket@gmail.com";

session_start();
if ($_POST["captcha"] == $_SESSION["captcha_code"]) {
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.brevo.com/v3/smtp/email",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'sender' => [
        'name' => 'Inquire From The Smart Test Prep',
        'email' => $sender_email,
    ],
    'to' => [
        [
                'email' => $to_email,
                'name' => 'Inquire From The Smart Test Prep'
        ]
    ],
    'htmlContent' => '<!DOCTYPE html>
<html lang="en">
   <head>
      <title>The Smart Test Prep - Experience Better Learning</title>
   </head>
   <body>
      

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
   <tbody>
      <tr>
         <td align="center">
            <table class="col-600" width="600" border="0" align="center" cellpadding="0" cellspacing="0"
               style="margin-left:20px; margin-right:20px; border-left: 1px solid #dbd9d9; border-right: 1px solid #dbd9d9; border-top: 1px solid #dbd9d9;margin-top:20px;">
               <tbody>
                  <tr>
                     <td align="center" valign="top" style="background-size:cover; background-position:top;height:400">
                        <table class="col-600" width="600" height="400" border="0" align="center" cellpadding="0" cellspacing="0">
                           <tbody>
                              <tr>
                                 <td align="center" style="line-height: 0px;">
                                    <img style="display:block; line-height:0px; font-size:0px; border:0px;" src="https://thesmarttestprep.com/images/logo.png" width="400" height="103" alt="logo">
                                 </td>
                              </tr>
                              <tr>
                                 <td align="center"
                                    style="font-family: Raleway, sans-serif; font-size:25px; color:#000000; line-height:24px; ">
                                    Contact us Inquire From The Smart Test Prep
                                 </td>
                              </tr>
                              <tr>
                                 <td height="20"></td>
                              </tr>
                           </tbody>
                        </table>
                     </td>
                  </tr>
               </tbody>
            </table>
         </td>
      </tr>
      <tr>
         <td align="center">
            <table class="col-600" width="600" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-left:20px; margin-right:20px; border-left: 1px solid #dbd9d9; border-right: 1px solid #dbd9d9;  margin-bottom: 20px;border-bottom: 1px solid #dbd9d9;">
            <tbody>
                  <tr>
                     <td align="center" style="font-family: Raleway, sans-serif; font-size:18px;  color:#2a3a4b;">Name : '.$name.'</td>
                  </tr>
                  <tr>
                     <td height="10"></td>
                  </tr>
                  <tr>
                     <td align="center" style="font-family: Raleway, sans-serif; font-size:18px; color:#2a3a4b;">Email : '.$email.'</td>
                  </tr>
                  <tr>
                     <td height="10"></td>
                  </tr>
                  <tr>
                     <td align="center" style="font-family: Raleway, sans-serif; font-size:18px; color:#2a3a4b;">Phone : '.$phone.'</td>
                  </tr>
                  <tr>
                     <td height="10"></td>
                  </tr>
                  <tr>
                     <td align="center" style="font-family: Raleway, sans-serif; font-size:18px; color:#2a3a4b;">Inquiry By : '.$inquiry_by.'</td>
                  </tr>
                  <tr>
                     <td height="10"></td>
                  </tr>
                  <tr>
                     <td align="center" style="font-family: Raleway, sans-serif; font-size:18px; color:#2a3a4b;">Current Class / Year : '.$year.'</td>
                  </tr>
                  <tr>
                     <td height="10"></td>
                  </tr>
                  <tr>
                     <td align="center" style="font-family: Raleway, sans-serif; font-size:18px; color:#2a3a4b;">Name Of School / College
                     : '.$sc_co.'</td>
                  </tr>
                  <tr>
                     <td height="10"></td>
                  </tr>
                  <tr>
                     <td align="center" style="font-family: Raleway, sans-serif; font-size:18px; color:#2a3a4b;">Class Type : '.$class_type.'</td>
                  </tr>
                  <tr>
                     <td height="10"></td>
                  </tr>
                  <tr>
                     <td align="center" style="font-family: Raleway, sans-serif; font-size:18px; color:#2a3a4b;">Courses : '.$courses.'</td>
                  </tr>
                  <tr>
                     <td height="10"></td>
                  </tr>

                  <tr>
                     <td align="center" style="font-family: Raleway, sans-serif; font-size:18px; color:#2a3a4b;">When you are planning to take the exam : '.$exam_date.'</td>
                  </tr>
                  <tr>
                     <td height="10"></td>
                  </tr>

                  <tr>
                     <td align="center" style="font-family: Raleway, sans-serif; font-size:18px; color:#2a3a4b;">Prefer time to contact : '.$time.'</td>
                  </tr>
                  <tr>
                     <td height="10"></td>
                  </tr>

                  <tr>
                     <td align="center" style="font-family: Raleway, sans-serif; font-size:18px; color:#2a3a4b;">How you came to know about us? : '.$message.'</td>
                  </tr>
                  <tr>
                     <td height="10"></td>
                  </tr>
               </tbody>
            </table>
         </td>
      </tr>
      <tr>
         <td height="5"></td>
      </tr>
      
   </tbody>
</table>



   </body>
</html>',
    'subject' => 'Inquire From The Smart Test Prep',

  ]),
  CURLOPT_HTTPHEADER => [
    "accept: application/json",
    "api-key: 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",
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);
echo "1";
}
else {
    echo "2";
}
?>