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


#1

Hi,

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 = "phptestmail@gmail.com"; $subject = "Nonsensical Latin"; // compose headers $headers = "From: me@mydomain.com\r\n"; $headers .= "Reply-To: me@mydomain.com\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]

[hr]
I also noticed that the same mail (send by phpmailler class) drops to in box on a site running on bolkens.dreamhost.com but again same mail drops to span on bootes.dreamhost.com