Hi,
We had that problem too. Actually it's stupid Hotmail that makes a problem out of it...
Anyway, we solved it by adding a 'return_path' pointing to the same domain as is sending the email. (Otherwise it points to the mailserver of your host, not your own, and hotmail then 'suspects' it's spam).
You can do this:
a. by adding a fifth parameter to your call to PHP's mail() function.
Simply add : ,"
[email protected]"
to that call.
mail($email_to,$subject,$body,$headers, "
[email protected]");
b. by adding a line to the PHP.INI file (local folder or system) :
[email protected]
You can also add it to .htaccess :
php_value
[email protected]
(I'm not quite sure about that syntax tho. You can google for it, if it doesn't work).
We added it in the code itself (a.), because then we didn't have to change system settings. PLUS the system settings act for the server, and we will add a domain and we can only set 1 return_path for the server.
Also, we set a SPF record for our domain in our DNS settings.
(
http://old.openspf.org/wizard.html)
An SPF record is sth only the owner/administrator of a domain can setup. In that record you say which servers may or may not send email for your domain. It is to prevent other servers to send mail AS you.
It has not much to do with YOU sending mail AS you... But Hotmail does see it as an extra sign that your email is not spam.
Hope this helps.
Paul