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?
Well in my case, email send using php mail() function end up in bulk/junk folder. User phpMailer Class, its really awesome and easy to use.
No, you cannot detect bounced mail. That is the job of the script you need to use phpmailer with. What you can do instead is request read receipts, but then it will only work with some email clients. Here's the code: $mail->ConfirmReadingTo = "your@address"; PHP:
It's not like it provides reliable data anyway, it's a natural reaction for anyone that uses a computer a lot to press no when they see one of those little boxes pop up incase its some bingo game or pornware or some shit .....