<?php

// header("Access-Control-Allow-Origin: *");



// ini_set('display_errors', 1);
// ini_set('display_startup_errors', 1);
// error_reporting(E_ALL);

// function send_email($email,$file,$project_name,$type) {
    
//     if($type=="brochure")
//   {
//     $subject = $project_name." - Brochure Document"; 
//   $message = "<h1>Brochure of ".$project_name." .</h1>";
//   $message.="<a href='".$file."'>View brochure</a>";
//           $message .= "<b>This is Sample Test Brochure.</b>";
  
//   }
//   else if($type=="posters")
//   {
//          $subject = $project_name." - Posters"; 
//          $message = "<h1>Posters of ".$project_name."</h1>";
//           $message.="<a href='".$file."'>View Posters</a>";
//           $message .= "<b>This is Sample message For posters.</b>";
   
//   }
   
   
    
    

// $to = "seniormanager@re.hrdandrecruitments.com";
// $email="prabukumar529@gmail.com";
// $subject="subject";
// $message="test";
// //Send email
// if(mail($email, $subject, $message, "From:" . $to))
// {
//     return true;
// }
// else
// {
//     return false;
// }
		  
	
		
// }


// if(isset($_POST['project_name']))
// {
//     $project_name=$_POST['project_name'];
   
//     $email = $_POST['email']; 
    
    
//     $file=$_POST['file'];
//     $type=$_POST['type'];
   

    
//     if(send_email($email,$file,$project_name,$type)==true)
//     {
//         echo '<i style="color:white" class="fa big-icon fa-check"></i>';
//     }
//     else
//     {
//           echo '<i style="color:white" class="fa big-icon fa-remove"></i>';
//     }
    
   
// }



$sender = 'seniormanager@vspromoters.in';
$recipient = 'prabukumar529@gmail.com';

$subject = "php mail test";
$message = "php test message";
$headers = 'From:' . $sender;

if (mail($recipient, $subject, $message, $headers))
{
    echo "Message accepted";
}
else
{
    echo "Error: Message not accepted";
}

?>