Forgot your password?
No problem! We will send you an email to your password. Just enter the same email address you used for registration on this site.
if (isset($_REQUEST["Save"])) { $Qry = "select * from admin_master"; $rsQry = mysql_query($Qry); $rsdata=mysql_fetch_object($rsQry); $admin_email=$rsdata->admin_email; // $paypal_mail=$rsdata->paypal_id; $from=$admin_email; $Qry = "select * from register where email='$_REQUEST[email]'"; $rsqry = mysql_query($Qry); echo mysql_error(); $rsdata = mysql_fetch_object($rsqry); if($rsdata->email==$_REQUEST['email']){ //$rsdata = mysql_fetch_object($rsqry); $accountno= $rsdata->id; $firstname = $rsdata->fname; $password = $rsdata->pwd; $to = $rsdata->email; //$sender = $from; $from= $_REQUEST['to']; $subject = "Password Reminder"; $body =" Welcome to SK4 Education Hello ".$firstname.", Your password is successfully sent.You can login into the site now. Email Address : ".$to ." Password : ".$password." "; //$body = "Hello ".$firstname.",Your password is successfully sent.You can login into the site now.
The Account No : "."".$accountno ."
The password : "."".$password."
"; /* $headers .= "From: $sender\r\n"; $headers .= "Sender: <".$to.">\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $header="From:<".$sender.">\n" ."MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1"; mail($to,$subject,$body,$header); */ $headers = "From: $from"; if (is_uploaded_file($fileatt)) { // Read the file to be attached ('rb' = read binary) $file = fopen($fileatt,'rb'); $data = fread($file,filesize($fileatt)); fclose($file); // Generate a boundary string $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; // Add the headers for a file attachment $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\""; // Add a multipart boundary above the plain message $message = "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type: text/plain; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message . "\n\n"; // Base64 encode the file data $data = chunk_split(base64_encode($data)); // Add file attachment to the message $message .= "--{$mime_boundary}\n" . "Content-Type: {$fileatt_type};\n" . " name=\"{$fileatt_name}\"\n" . "Content-Disposition: attachment;\n" . " filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n" . "--{$mime_boundary}--\n"; } @mail($to, $subject, $body, $headers); echo "
Password Is Successfully Sent To Your Email-Id
Email Address does not exist!! Try again