First, Try this Script for your Personal E-Mail or Create a Test Account and Test it for its E-Mail address :
My Personal Website is Down today, so I couldn't tested it...!Don't forget to change
Write the Test Email Address Here with the Email of Test Account.
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]<?php
require_once CLASSES."LostPassword.class.php";
$result = dbquery("SELECT user_name, user_email, user_password FROM ".DB_USERS." WHERE user_email='Write the Test Email Address Here'"
;
$reset = new LostPassword();
while ($data = dbarray($result))
{
$reset->checkPasswordRequest($data['user_email'], $data['user_password']);
echo $data['user_name']." : ".$data['user_email']." : New Password Sent<br />";
}
?>[/syntaxhighlighter]
If it works OK, then you can Change the Query to :
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$result = dbquery("SELECT user_name, user_email, user_password FROM ".DB_USERS." WHERE user_status=0"
;[/syntaxhighlighter]
Remember: This Query will Send E-Mails to All the Users(i.e no of registered Users) at the same time.