CHKRAMAIAH 10:12:12 | which address i will provide here,i am confuse, ///// Change this address within quotes to your address /// $headers4="admin@sitename.com"; ,my site is localhost:8082//medreport in this i developed the same pages,,, if i wrote the same i.e $headers4="admin@sitename.com"; i got one wrong message like this ..""There is some system problem in sending login details to your address. Please contact site-admin. "" entaire code for "forgot-passwordck.php" <? include 'menu.php'; include "include/session.php"; include "include/z_db.php"; // database connection details stored here ////////////////////////////// $email=$_POST['email']; ?> <!doctype html public "-//w3c//dtd html 3.2//en"> <html> <head> <title>forgot password checking</title> <meta name="GENERATOR" content="Arachnophilia 4.0"> <meta name="FORMATTER" content="Arachnophilia 4.0"> </head> <div style="margin-left: 45%"> <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000"> <? $email=mysql_real_escape_string($email); $status = "OK"; $msg=""; //error_reporting(E_ERROR | E_PARSE | E_CORE_ERROR); if (!stristr($email,"@") OR !stristr($email,".")) { $msg="Your email address is not correct<BR>"; $status= "NOTOK";} echo "<br><br>"; if($status=="OK"){ $query="SELECT email,userid,password FROM plus_signup WHERE plus_signup.email = '$email'"; $st=mysql_query($query); $recs=mysql_num_rows($st); $row=mysql_fetch_object($st); $em=$row->email;// email is stored to a variable if ($recs == 0) { echo "<font face='Verdana' size='2' color=red><b>No Password</b><br> Sorry Your address is not there in our database . You can signup and login to use our site. <BR><BR><a href='signup.php'> Sign UP </a> "; exit;} $headers4="admin@localhost:8082//medreport"; ///// Change this address within quotes to your address /// $headers4="admin@sitename.com"; $headers.="Reply-to: $headers4\n"; $headers .= "From: $headers4\n"; $headers .= "Errors-to: $headers4\n"; //$headers = "Content-Type: text/html; charset=iso-8859-1\n".$headers;// for html mail un-comment this line if(mail("$em","Your Request for login details","This is in response to your request for login detailst at medreport \n \nLogin ID: $row->userid \n Password: $row->password \n\n Thank You \n \n siteadmin","$headers")){echo "<font face='Verdana' size='2' ><b>THANK YOU</b> <br>Your password is posted to your emil address . Please check your mail after some time. ";} else{ echo " <font face='Verdana' size='2' color=red >There is some system problem in sending login details to your address. Please contact site-admin. <br><br><input type='button' value='Retry' onClick='history.go(-1)'></font>";} } else {echo "<font face='Verdana' size='2' color=red >$msg <br><br><input type='button' value='Retry' onClick='history.go(-1)'></font>";} ?> </body> </div> </html> is there any changes on my system could u plz give a ur valueble suggestion to me thank you |
smo1234 10-14-2012 | Please never expose your email address or phone number in forums. It appears there is some problem in sending mail. So try one simple example first by sending a test mail from your server. You can read about sending mail here |