Both domains are hosted by godaddy, so I suspect an "our only wish is to enslave you with our useless webformailer" issue, but would my form then work on one domain and not another?
"if($thing)" works as a condition for all other queries in the form, so I assume there could be no problem with that part.
And I am using exactly the same code for the entire site on another domain, and mail works fine from there.
But on this domain, the form updates the db as it should, and then returns to SELF as it should, but no email is sent. I am positive it is not going to spam.
What all to do if it is the server?
list($thing)...;
list($to_email) = mysql_fetch_row(mysql_query("select email from users where id = '$id'"));
$gomessage = "Hello";
if($thing) {
mysql_query("update users set stuff='1' where id='$id'");
@mail($to_email, "Hi", $gomessage,
"From: \"Me\" <auto-reply@$host>\r\n" .
"X-Mailer: PHP/" . phpversion());
$ret = $_SERVER['PHP_SELF'] . '?'.$_POST['query_str'];
header("Location: $ret");
exit();
}