')) { return true; } if(strpos($text,'(')) { return true; } if(strpos($text,')')) { return true; } if(strpos($text,'+')) { return true; } if(strpos($text,'CR')) { return true; } if(strpos($text,'LF')) { return true; } if(strpos($text,'\"')) { return true; } return false; } if($_GET['type']=="send" && find_special_character(trim($_POST['type']))==false) { $verif_box = $_POST["verif_box"]; if(md5($verif_box).'a4xn' == $_COOKIE['tntcon'] && find_special_character(trim($_POST['sender_name']))==false && find_special_character(trim($_POST['mobile_no']))==false && find_special_character(trim($_POST['sender_address']))==false && find_special_character(trim($_POST['industry_sector']))==false && find_special_character(trim($_POST['enquiry']))==false ) { $sender_name=$_POST['sender_name']; $email_id=$_POST['email_id']; $mobile_no=$_POST['mobile_no']; $sender_address=$_POST['sender_address']; $industry_sector=$_POST['industry_sector']; $enquiry=$_POST['enquiry']; //$mail_message=''; $subject="Enquiry/Suggestion from NCRPB "; $message.="Sender Name:  ".$sender_name."

"; $message.="Email ID:  ".$email_id."

"; if(!empty($mobile_no)) { $message.="Mobile No.:  ".$mobile_no."

"; } if(!empty($sender_address)) { $message.="Address:  ".$sender_address."

"; } $message.="Industry Sector:  ".$industry_sector."

"; $message.="Enquiry/Suggestion:  ".$enquiry; //$fromname= $snm; // $subject = "Earthbags.com Enquiry"; //message body start //$message= $mail_message; //message body end // Send the message //$ok = @mail($to, $subject, $message, $headers); $mail = new PHPMailer(); $mail->IsSMTP(); // send via SMTP $mail->Host = "localhost"; // SMTP servers $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = ""; // SMTP username $mail->Password = ""; // SMTP password //********************************************* $mail->From = $email_id; $mail->FromName = $sender_name; $mail->AddAddress("amitpsamanta@gmail.com"); $mail->AddReplyTo($email_id,$sender_name); $mail->WordWrap = 50; // set word wrap //$mail->AddAttachment("/".$fileupload_name); // attachment //$mail->AddAttachment("attach/$fileupload_name",$fileupload_name); //$mail->AddAttachment("/tmp/image.jpg", "new.jpg"); $mail->IsHTML(true); // send as HTML $mail->Subject = $subject; $mail->Body = $message; $mail->AltBody = "This is the text-only body"; $mail->Send(); $message="Thanks for your Query/Suggestion."; } else { $message="Please check all data entered"; } } ?> National Capital Region Planning Board
National Capital Region Planning Board
( MINISTRY OF URBAN DEVELOPMENT, GOVERNMENT OF INDIA )
What's New Contact Us Sitemap Search
Write to Member Secretary

Ms. Naini Jayaseelan, Member Secretary, NCR Planning Board and Chairman, AMDA

More >>

 
*Your name :
*E-mail ID :
Mobile No. :
Address :
*Sector :
*Enquiry/Suggestion :
*Verification Image   verification image, type it in the box