I have a bit of code that e-mails a password to a site user. This bit of code is working on a dozen different servers with no problems...except for one. I've looked at the guy's PHP settings, and can't see anything wrong. His server host says it's not their fault, that they've changed no settings. I think this is incorrect -- this part of the script was working fine on this guy's server up until two days ago, and I have made zero changes to it. Here's the snippet of code:
$subject = "New Password for $sitename";
$mailtext = "Hello, you appear to have requested a new password for $sitename. Your new password is:\n\nPassword: $pass\n\nIt is recommended that you go to Your Account and change the password to something easier for you to remember.";
mail($email, $subject,"Reply-To: $siteemail\r\n","From: $siteemail\r\n" . $mailtext);
$email and other variables are pulled from earlier parts in the code, and I've checked to confirm that those variables do actually exist. Anyway, like I said, it's working on several other servers with no problems. What should I tell this guy to tell his server host to look into? Or is it a problem with the code? Is there anything else I can try that might work? Am ready to start beating my head against the wall in frustration, as this fellow claims that his server host must be correct, that it is a problem with the script, and that I must fix this problem...