Php mail() goes to spam - Used to work up to now



I use PHP mail() function to send contact forms from my site. They used to work ok up to now but now they all drop to spam in gmail, yahoo etc.

Any ideas?

Here is a test code and it also went to spam

[code]/*from dreamhost wiki */

<?php $to = ""; $subject = "Nonsensical Latin"; // compose headers $headers = "From:\r\n"; $headers .= "Reply-To:\r\n"; $headers .= "X-Mailer: PHP/".phpversion(); // compose message $message = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit."; $message .= " Nam iaculis pede ac quam. Etiam placerat suscipit nulla."; // send email mail($to, $subject, $message, $headers); ?>[/code]

I also noticed that the same mail (send by phpmailler class) drops to in box on a site running on but again same mail drops to span on