Please enter your email address and click the 'Send Now' button.
Your username and password will will immediately be sent to this email address.
";
echo $msg_str;
}
function send_password($email){
require("db_conn.php3");
$select_str = " SELECT *
FROM orgs
WHERE email='$email'
";
$result=mysql_query($select_str);
if(mysql_num_rows($result)){
$row = mysql_fetch_array($result);
$to = $row["email"];
$subject = "Your details for eVolunteer.co.uk";
$message = "Hello,
You recently requested that your username and password be sent to this email address.
Your details are as follows:
Username: ".$row["username"]."
Password: ".$row["password"]."
If you have any other queries, please do not hesitate to contact support@evolunteer.co.uk
Best regards,
The eVolunteer.co.uk Team";
$from = "From:support@evolunteer.co.uk";
mail($to,$subject,$message,$from);
$to = "support@evolunteer.co.uk";
$subject = "Password Sent";
$message = $row["name"]."
http://www.evolunteer.co.uk/org_view.php3?org_id=".$row["org_id"];
$from = "From:support@evolunteer.co.uk";
mail($to,$subject,$message,$from);
echo "";
echo "
Your login details have been sent to ".$row["email"].". Please allow a few seconds for this email to be delivered.
Your will be redirected to the home page in 6 seconds.
If there is a problem with redirection please click here";
} else {
echo "
ERROR: The email address was not recognised. Please try again.";
}
}
menu_bar("index");
switch($flag){
case "send":
send_password($email);
break;
default:
password_form();
break;
}
?>