I recently moved to a new host which ended up breaking all my pages that use the mail() function. It seems to be fine when sending to any email hosted within their network but any email hosted elsewhere is lost with no errors given. I have contacted them and have been working on this for 2 days now but they have yet to fix this. I'm also convinced that it's not a coding problem because the identical page works on other servers.
if ($send == "yes")
{
$subject = "General Comments";
$from = "From: $email";
$mail = "$realname has sent the following message:\n\n$comments";
if (mail ($recipient, $subject, $mail, $from))
$email_msg = "Email has been sent to $recipient<br /><br />";
else
$email_msg = "Email could not be sent<br /><br />";
}
I did some searching over the past few days as well to try and get this working. This page here on phpbuilder sounded exactly what is wrong but they didn't respond when I sent them the link.
Has anybody else had this problem?