'0')// when record does not exist. { $msg = "FOUND"; $password=rand(12006,95006); $passwd = md5($password); $sql_customer_user="update tbl_mst_user_company set V_Password = '".$passwd."' where V_EmailId = '".$email."' "; mysql_query($sql_customer_user); $message= "Your user name and temporary password are below. Note that passwords are case sensitive, and your user name is in the form of your email address. You'll be asked to change your password when you first log in."; $message10="User Name::    "."".$email.""; $message15="Temporary Password::    "."".$password.""; $message1= "Please go to www.ensembler.com to login. Manually enter your user name, and copy and paste your temporary password, since it is case sensitive and the numbers and letters can look alike."; $message9="Password Tips:---"; $message2= " - You cannot use the temporary password again once you have logged in and set your new password."; /*$message12=" - Make sure to choose a password question and answer that you will easily remember, since you will need this   information in the future should you forget your password.";*/ $message3 = "Once again, welcome to Ensembler.Com."; $message4 = "www.ensembler.com "; $message5 = "B-254 Okhla Phase I,New Delhi"; $message6 = "Phone:+91 11 2637 1851"; $message7 = "Fax:+91 11 2637 1852 "; $message8 = "Website:www.alliance-infotech.com "; $subject = "Your password is reset on your request."; $headers = "MIME-Version: 1.0\r\n"; $headers.= "Content-type: text/html; charset=iso-8859-1\r\n"; $body=""; $body=$body."
"; $body=$body." "; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body.""; $body=$body."
 
Welcome to Ensembler.Com.
Your Password Is Enclosed.
 
"."Dear  ".$V_FirstName."
"."".$message."
 
"."".$message10."
"."".$message15."
 
"."".$message1."
 
"."".$message9."
"."".$message2."
"."".$message12."
 
"."".$message3."
"."".$message4."
"."".$message5."
"."".$message6."
"."".$message7."
"."".$message8."
 
"; #MAIL FUNCTION $to=$email; $from=$from_subscription; $ok_mail=mailcompose($to,$subject,$body,$headers,$from); $message="



Mail Successfully Sent!

"; //header("Location:unsucessful_thanks.php"); ?> Welcome to Ensembler site