Hi Everybody... 🙂
I been working on a script mod and I would like to include the site URL from the conf.php file.
here how the config.php file looks:
$data['url'] = 'http://www.domain.com';
This is the password reset page. This get email to them using email address.
$random_password = makeRandomPassword();
$db_password = md5($random_password);
$sql = mysql_query("UPDATE users SET password='$db_password' WHERE email_address='$email_address'");
$subject = "Your Password at MyWebsite!";
$message = "Hi, we have reset your password.
New Password: $random_password
[b]We like to have url here from config file[/b]
Thanks!
The Webmaster
This is an automated response, please do not reply!";
mail($email_address, $subject, $message, "From: MyDomain Webmaster<admin@mydomain.com>\nX-Mailer: PHP/" . phpversion());
can any body help out there....