problem receiving emails in hotmail.com addresses

Discussion in 'PHP' started by 4forumsID, Jul 14, 2006.

  1. #1
    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
     
    4forumsID, Jul 14, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you send to non-hotmail addresses does it work? Have you check the spam folder?
     
    mad4, Jul 14, 2006 IP
  3. 4forumsID

    4forumsID Peon

    Messages:
    162
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    non hotmail addresses work, the email gets out from my server ... hotmail seems to read the headers and thinks my email is spam ...
     
    4forumsID, Jul 14, 2006 IP
  4. jnestor

    jnestor Peon

    Messages:
    133
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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.
     
    jnestor, Jul 14, 2006 IP
  5. xeno

    xeno Peon

    Messages:
    788
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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?
     
    xeno, Jul 14, 2006 IP
  6. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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.
     
    T0PS3O, Jul 14, 2006 IP
  7. 4forumsID

    4forumsID Peon

    Messages:
    162
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #7
    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
     
    4forumsID, Jul 18, 2006 IP
  8. baybossplaya

    baybossplaya Active Member

    Messages:
    597
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #8
    is there a way to retrieve an old hotmail account that hasnt been used for over 3 years?
     
    baybossplaya, Apr 26, 2008 IP
  9. baybossplaya

    baybossplaya Active Member

    Messages:
    597
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #9
    is there a way to retrieve an old hotmail account that hasnt been used for over 3 years?
     
    baybossplaya, Apr 26, 2008 IP
  10. killer2021

    killer2021 Peon

    Messages:
    872
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #10
    nope, hard to do.
     
    killer2021, Nov 9, 2008 IP