I want to send an email with a user's email and password to their email account. This is the code I have:
if ($ct2 == 1){
while ($row = mysql_fetch_array($sql)){
$emusername = $row2["username"];
$empassword = $row2["password"];
$firstname = $row2["first_name"];
$to = $row["email"];
$subject = "User Name And Password";
$message = $firstname
. "Here is your username and password,\n Username"
. $emusername . "\n Password"
. $empassword . "\n\n";
$headers = "From: webmaster@tfcbondfire.com\r\nReply-To: Forgot username and password.";
mail($to,$subject,$message,$headers);
//The email is sent but none of the $... information in the $message is sent. I can't figure out how to get it to send the info.