Sorry to post here but coding help is down.
i have a script to send an email to the user if they forget there password. it all send fine, but the variables in the body text dont work, they just appear blank, they are all set ive tested them. can anyone help me out?
$address = "$email1";
$subject = "Login details";
$body = "
This is an automated message sent by www.john-scp.com
Hi $user,
We received a request for your password.
If you did not make such a request than somebody faked it and you should ignore this email message.
If you made the request here is the information you require.
--- Login details ---
Login name : $user
Password : '$password'
Type the password without the quotes around it, those are only there so you know if the password contains any spaces.
Chris Harrison
";
$headers = "From: support@john-scp.net\nX-Mailer: PHP/ . phpversion());";
$mailsend = mail($address , $subject , $body , $headers);
echo "$mailsend";