Please check mail function only............. its not submitting mail/// and does not show any error

2 views
Skip to first unread message

innocentumesh

unread,
Feb 14, 2013, 3:58:26 AM2/14/13
to phpgroup2...@googlegroups.com
Please check mail function only............. its not submitting mail/// and doesnot show any error
Its urgent to finish this project


<?php
include ('../includes/connection.php');
include ('../includes/function.php');

$email = $_REQUEST['email'];

$sci_id = $_REQUEST['sciid'];

$senddatetime = date('Y-m-d H:i:s');

$expirydate = date('Y-m-d H:i:s', time() + 60*60*24*2);

$secretkey = GenerateKey();


$sqldata = mysql_fetch_assoc(mysql_query("SELECT * FROM tbl_student WHERE s_email='$email'"));

$subject = "Request For Feedback About BROADWAY INFOSIS NEPAL";

$content='Dear '.$sqldata['s_name'].',<br/> BROADWAY INFOSIS NEPAL wants to know your perception about us and the course you have recently taken from our institution. We require your suggestion/grievances/comments about our institution that will help us to improve the quality of our services.<br/>
<h2><a href="$link">Please click on this link to fill our FEEDBACK FORM!</a></h2><br/>
This feedback form is submitted via email which was registered in <strong>Broadway Infosis Nepal</strong> in student profile. If you are not the right person please do not fill this form and inform to <strong>Broadway Infosis Nepal</strong> 
or email <a href="mailto: broadwa...@gmail.com">broadwa...@gmail.com</a>';

$message = html_entity_decode($content);

if (mail ($email,$subject,$message,'From: BROADWAY INFOSIS NEPAL',$debug=false)) { 
header ('location: index.php?successnotification=Successfully Submitted Feedback Request');
} else { 
echo "Sending Mail Error";}

?>







Reply all
Reply to author
Forward
0 new messages