ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/public_html/lilyexpresslive/email/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/public_html/lilyexpresslive/email/email.php

<?php 
if(isset($_POST['type']) && $_POST['type']=='send_email'){
     try{
        $name = $_POST['name'];
        $email = $_POST['email'];
        $phone = $_POST['mobile_no'];
        $subject = $_POST['subject'];
        $msg = $_POST['msg_text'];
        error_log($name);
        $to = "lilyexpressservices@gmail.com";
        $subject = "<p>Message Details:-<b >Addmision Enquiry:<b><br>";
        $subject1 =strip_tags($subject);
        $header ="";
        $header .= "Name: <b>".$name."</b><br>\r\n";
        $header .= "Email: <b>".$email."</b><br>\r\n";
        $header .= "Subject: <b>".$subject."</b><br>\r\n";
        $header .= "Phone: <b>".$phone."</b><br>\r\n";
        $header .= "Message: <b>".$msg."</b><br>\r\n";
        
        $header1=strip_tags($header);
        
        $retval = mail ($to,$subject1,$header1);
        if($retval== true){    
            $return_arr['message']='Message Sended Successfully';
            $return_arr['status']=200;
        } 
        else{
            $return_arr['message']='Message could not be sent...';
            $return_arr['status']=400;
        }

    }catch(PDOException $e){
        $return_arr['message']="$e";
        $return_arr['status']=500;
        }   
    echo json_encode($return_arr);
}

?>

Zerion Mini Shell 1.0