MMCT TEAM
Server IP : 2a02:4780:11:1017:0:31f1:b895:8  /  Your IP : 216.73.216.163
Web Server : LiteSpeed
System : Linux in-mum-web917.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u837925013 ( 837925013)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u837925013/domains/tech2wizard.com/public_html/admin/inc/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u837925013/domains/tech2wizard.com/public_html/admin/inc/mail.php
<?php
include("conn.php");



function mailRegister($con,$id){
    $get_social= mysqli_fetch_assoc($con->query("select * from social"));
    $get_footer= mysqli_fetch_assoc($con->query("select * from header"));
    $get_logo= mysqli_fetch_assoc($con->query("select * from logo"));
    
    $sql="SELECT * FROM `users` Where id='$id'";
	$res=mysqli_query($con,$sql);
	$row=mysqli_fetch_assoc($res);
	$name_parts = explode(" ", $row['name']);
    $first_name = $name_parts[0];
    $recipient = $row['email'];
    $subject = 'Thank you for Joining!!';
    $from = 'tech2wizard@email.com';
    
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    
    $headers .= 'From: '.$from."\r\n".
    'Reply-To: '.$from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    $message='<div class="content email-tmp">
  <div class="wrapper-1" style="width:100%;background: #e9e9e9;margin:0 auto;">
      <div class="wrapper-2" style="padding:30px 0; text-align: center;border:1px solid #f75b13;">
          <div class="logo">
              <img src="'.IMAGE_SITE_PATH.$get_logo['logo1'].'" style="width: 250px;" />
          </div>
          <div style="margin: 35px 5px;">
            <h1 style="font-family: initial;  font-size: 3em;color: #f75b13; margin:0; margin-bottom: 20px;">Hi '.$first_name.'</h1>
            <p style="margin: 0; font-size: 1.3em; color: #625e5e;font-family: initial;  letter-spacing: 1px;">Your account has been successfully created. We welcome you to our community</p>
            <div style="margin-top: 28px">
              <a href="'.SITE_PATH.'login.php" style="background: #f75b13;color: white;text-decoration: none;padding: 9px;">Click to Login</a>
            </div>
          </div>
          <div class="footer-like" style="font-family: initial;padding: 10px;">
            <p>Stay in Tauch ! You can find us on</p>
            <a style="margin-top: 10px;" href="'.$get_social['facebook'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'fb.png" style="width: 30px;" /></a>
            <a href="'.$get_social['instagram'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'insta.png" style="width: 30px;" /></a>
            <a href="'.$get_social['youtub'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'youtub.png" style="width: 30px;" /></a>
            <a href="'.$get_social['twitter'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'twitter.png" style="width: 30px;" /></a>
            <div class="footer-like"style="padding:10px;font-family:initial;font-size:13px;color: #625e5e;">
              '.$get_footer['copyright'].'
            </div>
          </div>
          
      </div>
  </div>
</div>';
    
    mail($recipient, $subject, $message, $headers);  
}

function mailContact($con,$id){
    $get_social= mysqli_fetch_assoc($con->query("select * from social"));
    $get_footer= mysqli_fetch_assoc($con->query("select * from header"));
    $get_logo= mysqli_fetch_assoc($con->query("select * from logo"));
    
    $sql="SELECT * FROM `contact_submited` Where id='$id'";
	$res=mysqli_query($con,$sql);
	$row=mysqli_fetch_assoc($res);
	$name_parts = explode(" ", $row['name']);
    $first_name = $name_parts[0];
    $recipient = $row['email'];
    $subject = 'Thank you for Contacting!!';
    $from = 'tech2wizard@email.com';
    
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    
    $headers .= 'From: '.$from."\r\n".
    'Reply-To: '.$from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    $message='<div class="content email-tmp">
  <div class="wrapper-1" style="width:100%;background: #e9e9e9;margin:0 auto;">
      <div class="wrapper-2" style="padding:30px 0; text-align: center;border:1px solid #f75b13;">
          <div class="logo">
              <img src="'.IMAGE_SITE_PATH.$get_logo['logo1'].'" style="width: 250px;" />
          </div>
          <div style="margin: 35px 5px;">
            <h1 style="font-family: initial;  font-size: 3em;color: #f75b13; margin:0; margin-bottom: 20px;">Hi '.$first_name.'</h1>
            <p style="margin: 0; font-size: 1.3em; color: #625e5e;     font-family: initial;  letter-spacing: 1px;">We have received your message and will respond promptly</p>
          </div>
          <div class="footer-like" style="font-family: initial;padding: 10px;">
            <p>Stay in Tauch ! You can find us on</p>
            <a style="margin-top: 10px;" href="'.$get_social['facebook'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'fb.png" style="width: 30px;" /></a>
            <a href="'.$get_social['instagram'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'insta.png" style="width: 30px;" /></a>
            <a href="'.$get_social['youtub'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'youtub.png" style="width: 30px;" /></a>
            <a href="'.$get_social['twitter'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'twitter.png" style="width: 30px;" /></a>
            <div class="footer-like"style="padding:10px;font-family:initial;font-size:13px;">
              '.$get_footer['copyright'].'
            </div>
          </div>
          
      </div>
  </div>
</div>';
    
    mail($recipient, $subject, $message, $headers);  
}

function sentInvoice($con,$id){
    $get_social= mysqli_fetch_assoc($con->query("select * from social"));
    $get_footer= mysqli_fetch_assoc($con->query("select * from header"));
    $get_logo= mysqli_fetch_assoc($con->query("select * from logo"));
    
    $sql="SELECT * FROM `order` Where id='$id'";
	$res=mysqli_query($con,$sql);
	$row=mysqli_fetch_assoc($res);
	$name_parts = explode(" ", $row['name']);
    $first_name = $name_parts[0];
    $recipient = $row['email'];
    $subject = 'Thank you for your Booking!!';
    $from = 'tech2wizard@email.com';
    
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    
    $headers .= 'From: '.$from."\r\n".
    'Reply-To: '.$from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    $message='<div class="content email-tmp">
  <div class="wrapper-1" style="width:100%;background: #e9e9e9;margin:0 auto;">
      <div class="wrapper-2" style="padding:30px; text-align: center;border:1px solid #f75b13;">
          <div class="logo">
              <img src="'.IMAGE_SITE_PATH.$get_logo['logo1'].'" style="width: 250px;" />
          </div>
          <div style="margin: 20px;">
            <h1 style="font-family: initial;  font-size: 3em;color: #f75b13; margin:0; margin-bottom: 20px;">Hi '.$first_name.'</h1>
            <p style="margin: 0; font-size:1.5em; color: #625e5e;font-family: initial;  letter-spacing: 1px;">Thanku for your Booking</p>
            <div >
              <p style="font-size: 15px;color: #424242;font-family: initial;"><b>Booking ID :</b> '.$row['orderID'].'</p>
              <p style="font-size: 15px;color: #424242;font-family: initial;"><b>Booked On :</b> '.date('M d, Y', strtotime($row['added_on'])).'</p>
              
            </div>
            <div style="">
              <p style="font-size: 15px;color: #424242;font-family: initial;">Visit your <a href="'.SITE_PATH.'dashboard.php"><u>account page</u></a> to mannage your invoices, booking.</p>
              <p style="font-size: 15px;color: #424242;font-family: initial;">If you have any question, please contact us at <a href="mailto:'.$get_footer['email'].'"><u> '.$get_footer['email'].'</u></a></p>
              
            </div>
            <div style="margin: 28px 0;">
              <a href="'.SITE_PATH.'dashboard.php" style="background: #f75b13;color: white;text-decoration: none;padding: 9px;">Click to View Booking</a>
            </div>
          </div>
          <div class="footer-like" style="font-family: initial;padding: 10px;">
            <p style="font-size: 15px;color: #424242;font-family: initial;">Stay in Tauch ! You can find us on</p>
             <a style="margin-top: 10px;" href="'.$get_social['facebook'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'fb.png" style="width: 30px;" /></a>
            <a href="'.$get_social['instagram'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'insta.png" style="width: 30px;" /></a>
            <a href="'.$get_social['youtub'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'youtub.png" style="width: 30px;" /></a>
            <a href="'.$get_social['twitter'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'twitter.png" style="width: 30px;" /></a>
            <div class="footer-like"style="padding:10px;color: #424242;font-family:initial;font-size:13px;">
              '.$get_footer['copyright'].'
            </div>
          </div>
          
      </div>
  </div>
</div>';
    
    mail($recipient, $subject, $message, $headers);  
}

function mailBookingStatus($con,$id,$status){
    $get_social= mysqli_fetch_assoc($con->query("select * from social"));
    $get_footer= mysqli_fetch_assoc($con->query("select * from header"));
    $get_logo= mysqli_fetch_assoc($con->query("select * from logo"));
    
    $sql="SELECT * FROM `order` Where id='$id'";
	$res=mysqli_query($con,$sql);
	$row=mysqli_fetch_assoc($res);
	$name_parts = explode(" ", $row['name']);
    $first_name = $name_parts[0];
	$sql_status= mysqli_query($con,"SELECT * FROM order_status WHERE id='".$status."'");
    $status_data= mysqli_fetch_array($sql_status);
	
    $recipient = $row['email'];
    $subject = 'Your Booking Status Changed';
    $from = 'tech2wizard@email.com';
    
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    
    $headers .= 'From: '.$from."\r\n".
    'Reply-To: '.$from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    $message='<div class="content email-tmp">
  <div class="wrapper-1" style="width:100%;background: #e9e9e9;margin:0 auto;">
      <div class="wrapper-2" style="padding:30px 0; text-align: center;border:1px solid #f75b13;">
          <div class="logo">
              <img src="'.IMAGE_SITE_PATH.$get_logo['logo1'].'" style="width: 250px;" />
          </div>
          <div style="margin: 20px;">
            <h1 style="font-family: initial;  font-size: 3em;color: #f75b13; margin:0; margin-bottom: 20px;">Hi '.$first_name.'</h1>
            <p style="margin: 0; font-size: 1.5em; color: #625e5e;font-family: initial;  letter-spacing: 1px;">Booking Updated</p>
            <div >
              <p style="font-size: 15px;color: #424242;font-family: initial;"><b>Booking ID :</b> '.$row['orderID'].'</p>
              <p style="font-size: 15px;color: #424242;font-family: initial;"><b>Booked On :</b> '.date('M d, Y', strtotime($row['added_on'])).'</p>
              <p style="font-size: 15px;color: #424242;font-family: initial;"><b>Booking Status :</b> <b>'.$status_data['name'].'</b></p>
            </div>
            <div style="">
              <p style="font-size: 15px;color: #424242;font-family: initial;">The status of your Booking has been updated, as shown above.</p>
              <p style="font-size: 15px;color: #424242;font-family: initial;">You can check on the status of your Booking at any time, by going to <a href="'.SITE_PATH.'dashboard.php"><u>My Booking</u></a>in your account</p>
              <p style="font-size: 15px;color: #424242;font-family: initial;">If you have any question, please contact us at <a href="mailto:'.$get_footer['email'].'"><u> '.$get_footer['email'].'</u></a></p>
              
            </div>
            <div style="margin: 28px 0;">
              <a href="'.SITE_PATH.'dashboard.php" style="background: #f75b13;color: white;text-decoration: none;padding: 9px;">Click to View Booking</a>
            </div>
          </div>
          <div class="footer-like" style="font-family: initial;padding: 10px;">
            <p style="font-size: 15px;color: #424242;font-family: initial;">Stay in Tauch ! You can find us on</p>
             <a style="margin-top: 10px;" href="'.$get_social['facebook'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'fb.png" style="width: 30px;" /></a>
            <a href="'.$get_social['instagram'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'insta.png" style="width: 30px;" /></a>
            <a href="'.$get_social['youtub'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'youtub.png" style="width: 30px;" /></a>
            <a href="'.$get_social['twitter'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'twitter.png" style="width: 30px;" /></a>
            <div class="footer-like"style="padding:10px;font-family:initial;font-size:13px;color: #424242;">
              '.$get_footer['copyright'].'
            </div>
          </div>
          
      </div>
  </div>
</div>';
    
    mail($recipient, $subject, $message, $headers);  
}

function mailReset($con,$email){
    $get_social= mysqli_fetch_assoc($con->query("select * from social"));
    $get_footer= mysqli_fetch_assoc($con->query("select * from header"));
    $get_logo= mysqli_fetch_assoc($con->query("select * from logo"));
    
    $expFormat = mktime(date("H"), date("i"), date("s"), date("m") ,date("d")+1, date("Y"));
    $expDate = date("Y-m-d H:i:s",$expFormat);
    $key = md5('2418*2+'.$email);
    $addKey = substr(md5(uniqid(rand(),1)),3,10);
    $key = $key . $addKey;
       
    mysqli_query($con,"INSERT INTO `password_reset_temp` (`email`, `key`, `expDate`)VALUES ('".$email."', '".$key."', '".$expDate."');");
    
    $sql="SELECT * FROM `users` Where email='$email'";
	$res=mysqli_query($con,$sql);
	$row=mysqli_fetch_assoc($res);
	$name_parts = explode(" ", $row['name']);
    $first_name = $name_parts[0];
    $recipient = $email;
    $subject = 'Password Recovery';
    $from = 'tech2wizard@email.com';
    
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    
    $headers .= 'From: '.$from."\r\n".
    'Reply-To: '.$from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    $message='<div class="content email-tmp">
  <div class="wrapper-1" style="width:100%;background: #e9e9e9;margin:0 auto;">
      <div class="wrapper-2" style="padding:30px 0; text-align: center;border:1px solid #f75b13;">
          <div class="logo">
              <img src="'.IMAGE_SITE_PATH.$get_logo['logo1'].'" style="width: 250px;" />
          </div>
          <div style="margin: 35px 5px;">
            <h1 style="font-family: initial;  font-size: 3em;color: #f75b13; margin:0; margin-bottom: 20px;">Hi '.$first_name.'</h1>
            <p style="margin: 0;     margin-bottom: 10px;font-size: 1em; color: #625e5e;font-family: initial;  letter-spacing: 1px;">Please click on the following link to reset your password.</p>
            <p style="margin: 0;     margin-bottom: 10px;font-size: 1em; color: #625e5e;font-family: initial;  letter-spacing: 1px;"><a href="'.SITE_PATH.'reset-password.php?key='.$key.'&email='.$email.'&action=reset" target="_blank">'.SITE_PATH.'reset-password.php?key='.$key.'&email='.$email.'&action=reset</a></p>
            <p style="margin: 0;     margin-bottom: 10px;font-size: 1em; color: #625e5e;font-family: initial;  letter-spacing: 1px;">Please be sure to copy the entire link into your browser.
The link will expire after 1 day for security reason.</p>
            <p style="margin: 0;     margin-bottom: 10px;font-size: 1em; color: #625e5e;font-family: initial;  letter-spacing: 1px;">If you did not request this forgotten password email, no action 
is needed, your password will not be reset. However, you may want to log into 
your account and change your security password as someone may have guessed it.</p>
            
          </div>
          <div class="footer-like" style="font-family: initial;padding: 10px;">
            <p style="color: #625e5e;">Stay in Tauch ! You can find us on</p>
            <a style="margin-top: 10px;" href="'.$get_social['facebook'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'fb.png" style="width: 30px;" /></a>
            <a href="'.$get_social['instagram'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'insta.png" style="width: 30px;" /></a>
            <a href="'.$get_social['youtub'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'youtub.png" style="width: 30px;" /></a>
            <a href="'.$get_social['twitter'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'twitter.png" style="width: 30px;" /></a>
            <div class="footer-like"style="padding:10px;color: #625e5e;font-family:initial;font-size:13px;">
              '.$get_footer['copyright'].'
            </div>
          </div>
          
      </div>
  </div>
</div>';
    
    mail($recipient, $subject, $message, $headers);  
}

function mailPartner($con,$id){
    $get_social= mysqli_fetch_assoc($con->query("select * from social"));
    $get_footer= mysqli_fetch_assoc($con->query("select * from header"));
    $get_logo= mysqli_fetch_assoc($con->query("select * from logo"));
    
    $sql="SELECT * FROM `preferred_partner` Where id='$id'";
	$res=mysqli_query($con,$sql);
	$row=mysqli_fetch_assoc($res);
	$name_parts = explode(" ", $row['name']);
    $first_name = $name_parts[0];
    $recipient = $row['email'];
    $subject = 'Thank you for Sending!!';
    $from = 'tech2wizard@email.com';
    
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    
    $headers .= 'From: '.$from."\r\n".
    'Reply-To: '.$from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    $message='<div class="content email-tmp">
  <div class="wrapper-1" style="width:100%;background: #e9e9e9;margin:0 auto;">
      <div class="wrapper-2" style="padding:30px 0; text-align: center;border:1px solid #f75b13;">
          <div class="logo">
              <img src="'.IMAGE_SITE_PATH.$get_logo['logo1'].'" style="width: 250px;" />
          </div>
          <div style="margin: 35px 5px;">
            <h1 style="font-family: initial;  font-size: 3em;color: #f75b13; margin:0; margin-bottom: 20px;">Hi '.$first_name.'</h1>
            <p style="margin: 0; font-size: 1.3em; color: #625e5e;     font-family: initial;  letter-spacing: 1px;">We have received your Request and we will respond after reviewing your application </p>
          </div>
          <div class="footer-like" style="font-family: initial;padding: 10px;">
            <p>Stay in Tauch ! You can find us on</p>
            <a style="margin-top: 10px;" href="'.$get_social['facebook'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'fb.png" style="width: 30px;" /></a>
            <a href="'.$get_social['instagram'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'insta.png" style="width: 30px;" /></a>
            <a href="'.$get_social['youtub'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'youtub.png" style="width: 30px;" /></a>
            <a href="'.$get_social['twitter'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'twitter.png" style="width: 30px;" /></a>
            <div class="footer-like"style="padding:10px;font-family:initial;font-size:13px;">
              '.$get_footer['copyright'].'
            </div>
          </div>
          
      </div>
  </div>
</div>';
    
    mail($recipient, $subject, $message, $headers);  
}

function mailfranchise($con,$id){
    $get_social= mysqli_fetch_assoc($con->query("select * from social"));
    $get_footer= mysqli_fetch_assoc($con->query("select * from header"));
    $get_logo= mysqli_fetch_assoc($con->query("select * from logo"));
    
    $sql="SELECT * FROM `franchise_application` Where id='$id'";
	$res=mysqli_query($con,$sql);
	$row=mysqli_fetch_assoc($res);
	$name_parts = explode(" ", $row['name']);
    $first_name = $name_parts[0];
    $recipient = $row['email'];
    $subject = 'Thank you for Sending!!';
    $from = 'tech2wizard@email.com';
    
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    
    $headers .= 'From: '.$from."\r\n".
    'Reply-To: '.$from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    $message='<div class="content email-tmp">
  <div class="wrapper-1" style="width:100%;background: #e9e9e9;margin:0 auto;">
      <div class="wrapper-2" style="padding:30px 0; text-align: center;border:1px solid #f75b13;">
          <div class="logo">
              <img src="'.IMAGE_SITE_PATH.$get_logo['logo1'].'" style="width: 250px;" />
          </div>
          <div style="margin: 35px 5px;">
            <h1 style="font-family: initial;  font-size: 3em;color: #f75b13; margin:0; margin-bottom: 20px;">Hi '.$first_name.'</h1>
            <p style="margin: 0; font-size: 1.3em; color: #625e5e;     font-family: initial;  letter-spacing: 1px;">We have received your Request and we will respond after reviewing your application </p>
          </div>
          <div class="footer-like" style="font-family: initial;padding: 10px;">
            <p>Stay in Tauch ! You can find us on</p>
            <a style="margin-top: 10px;" href="'.$get_social['facebook'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'fb.png" style="width: 30px;" /></a>
            <a href="'.$get_social['instagram'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'insta.png" style="width: 30px;" /></a>
            <a href="'.$get_social['youtub'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'youtub.png" style="width: 30px;" /></a>
            <a href="'.$get_social['twitter'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'twitter.png" style="width: 30px;" /></a>
            <div class="footer-like"style="padding:10px;font-family:initial;font-size:13px;">
              '.$get_footer['copyright'].'
            </div>
          </div>
          
      </div>
  </div>
</div>';
    
    mail($recipient, $subject, $message, $headers);  
}
function mailjob($con,$id){
    $get_social= mysqli_fetch_assoc($con->query("select * from social"));
    $get_footer= mysqli_fetch_assoc($con->query("select * from header"));
    $get_logo= mysqli_fetch_assoc($con->query("select * from logo"));
    
    $sql="SELECT * FROM `job_application` Where id='$id'";
	$res=mysqli_query($con,$sql);
	$row=mysqli_fetch_assoc($res);
	$name_parts = explode(" ", $row['name']);
    $first_name = $name_parts[0];
    $recipient = $row['email'];
    $subject = 'Thank you for Applying!!';
    $from = 'tech2wizard@email.com';
    
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    
    $headers .= 'From: '.$from."\r\n".
    'Reply-To: '.$from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    $message='<div class="content email-tmp">
  <div class="wrapper-1" style="width:100%;background: #e9e9e9;margin:0 auto;">
      <div class="wrapper-2" style="padding:30px 0; text-align: center;border:1px solid #f75b13;">
          <div class="logo">
              <img src="'.IMAGE_SITE_PATH.$get_logo['logo1'].'" style="width: 250px;" />
          </div>
          <div style="margin: 35px 5px;">
            <h1 style="font-family: initial;  font-size: 3em;color: #f75b13; margin:0; margin-bottom: 20px;">Hi '.$first_name.'</h1>
            <p style="margin: 0; font-size: 1.3em; color: #625e5e;     font-family: initial;  letter-spacing: 1px;">We have received your Application and we will respond after reviewing your application </p>
          </div>
          <div class="footer-like" style="font-family: initial;padding: 10px;">
            <p>Stay in Tauch ! You can find us on</p>
            <a style="margin-top: 10px;" href="'.$get_social['facebook'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'fb.png" style="width: 30px;" /></a>
            <a href="'.$get_social['instagram'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'insta.png" style="width: 30px;" /></a>
            <a href="'.$get_social['youtub'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'youtub.png" style="width: 30px;" /></a>
            <a href="'.$get_social['twitter'].'" target="_blank"><img src="'.EMAIL_SITE_PATH.'twitter.png" style="width: 30px;" /></a>
            <div class="footer-like"style="padding:10px;font-family:initial;font-size:13px;">
              '.$get_footer['copyright'].'
            </div>
          </div>
          
      </div>
  </div>
</div>';
    
    mail($recipient, $subject, $message, $headers);  
}
?>

MMCT - 2023