Hotmail.com does not receive emails when i send them with mail() function from PHP ... What is wrong ?? My script is : $to = "slbzlatv@hotmail.com"; $subject = "You've got mail!"; $message = "Hello someone."; $headers = "From: \n"; // I suggest you try using only \n $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "Return-path: me <admin@domain.net>\n"; $headers .= "X-Priority: 1\n"; $headers .= "X-MSmail-Priority: High\n"; $headers .= "X-mailer: PHP"; mail ($to, $subject, $message, $headers, "-f "); ----- Qmail-send tells me this : @4000000044b6ceb7340da53c new msg 427543 @4000000044b6ceb7340f2fc4 info msg 427543: bytes 420 from <admin@hopzone.net> qp 8885 uid 33 @4000000044b6ceb738f2fcb4 starting delivery 754: msg 427543 to remote @4000000044b6ceb738f346ec status: local 0/10 remote 1/255 @4000000044b6ceb935a661f4 delivery 754: success: 65.54.244.8_accepted_message./Remote_host_said:_250__<20060713225229.8884.qmail@mail.hophost.net>_Queued_mail_for_delivery/ @4000000044b6ceb935a901d4 status: local 0/10 remote 0/255 @4000000044b6ceb935aa3a54 end msg 427543 and doesn`t receive any email ... I underline that if i send from outlook express it works
non hotmail addresses work, the email gets out from my server ... hotmail seems to read the headers and thinks my email is spam ...
Well you know what the problem is and it really has little to do with your script. Hotmail thinks your e-mail is spam. 1) make sure your from address is on the same domain where you're generating the e-mail. 2) if possible don't send html mail 3) don't try to set high priority 4) Change your X-mailer header to mimic a real e-mail program All of these things make your mail looks like spam. Obviously hotmail isn't going to tell you exactly what to do to avoid their spam filters. Try looking at the headers of some automatically generated mail that does get through to your hotmail account. Hotmail is notorious for having overagressive spam filters (actually just brain dead - the let spam through and filter messages I want). They're also notorious for completely ignoring the requests of even large legit mailing lists for info on why their mail is being filtered.
Yes, but php mail used to only work with email addresses on the same domain. Now it can send mail to other site's email, but not to yahoo. Why not send it to and forward that mail to your hotmail account?
I had similar issues - it was because of the php.ini sendmail_from variable. Can't remember whther it's jus a Windows server issue though. It has to be the same is the FROM and Return path. If it's different then some clients see it as a malformed header. Hotmail is also very quick to pick up bulk e-mail. I sent a newsletter to 10K people and almost none of the hotmail ones arrived. Look into SPF and other initiatives to make sure your server is accepted for mail.
someone told me i have to use phpmail class to send emails from php and to be accepted by hotmail.com email adresses ... i`m going to try it and send feedback