= 3){ echo "
Please contact us at ".$adminEmail." for further assistance."; include "footer.php"; exit; } }else{ //update the database with the new password and send the email $row1 = mysql_fetch_array($q1); $q2 = mysql_query("UPDATE Affiliates SET Password = '".$newPassword."' WHERE AffiliateID = '$row1[AffiliateID]' LIMIT 1 "); if(mysql_affected_rows() == 1){ //send the email $mailTo = $checkEmail; $mailSubject = $siteName. "Password"; $mailMessage = "Your $siteName affiliate password has been changed to $sendPassword.\r\n"; $mailMessage .= "If you did not request a new password please contact us.\r\n\n"; $mailMessage .= "Thank you,\n"; $mailMessage .= "The Affiliate Support Team"; $mailHeader = "From: $siteName <$adminEmail>\r\n"; mail($mailTo, $mailSubject, $mailMessage, $mailHeader); echo "New password sent to ".$mailTo; echo "
LogIn"; }else{ echo "The password could not be updated. Pleae contact us at ".$adminEmail; include "footer.php"; exit; } } } ?>
Reestablecer contraseña
Introduce tu dirección de correo electrónico:



Una nueva contraseña será enviada a esta dirección de email.
Debe coincidir con la dirección de email con la que te registraste.