I'm using the simple mail() function.
mail($To, $Subject, $Message, $headers);
95% of the time it works fine, but twice now it has sent out the mail using the correct 'to' and 'message' fields but the 'subject' and 'headers' were empty.
I declare the 'subject' immediately before sending the mail with this line:
$Subject = "Quote (".$thecountry."/".$lang.") ".strip_tags($_POST['company_name']);
The headers are also set in this way, then the mail is sent. I can't think of anything that would cause the values to disappear such as using sessions etc.
Whats going on here?