1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sending mail with PHP to hotmail

Discussion in 'PHP & Perl' started by qlithe, Jun 16, 2014.

  1. qlithe

    qlithe Power Member

    Joined:
    Feb 14, 2012
    Messages:
    614
    Likes Received:
    96
    I'm successfully sending mails with my PHP script but for some reason the mails doesn't turn up on hotmails. Not even in the junk folder.

    I've tried all kinds of headers and SPF

    Any ideas?
     
  2. royserpa

    royserpa Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 28, 2011
    Messages:
    4,646
    Likes Received:
    3,492
    Gender:
    Male
    Occupation:
    Negative Options aka Rebills!
    Location:
    Royserpa
    Home Page:
    Probably some sort of error from your part. Try resending the email and enable log. Also, you should try with a trusted smtp, this worked in the past for me in some tests.
     
  3. qlithe

    qlithe Power Member

    Joined:
    Feb 14, 2012
    Messages:
    614
    Likes Received:
    96
    Well it works just fine for gmail (junk folder atleast)

    My code should work. I'm using hostwinds with a dedicated IP. Not sure why hotmail won't receive it?
     
  4. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    950
    Likes Received:
    662
    Occupation:
    Web/Bot Developer
    If you are using PHP's built in mail() function Hotmail is likely rejecting your mails as spam. As stated above, you should be using a properly configured SMTP server if you require reliable inboxing.

    Try this robust PHP mailer library:
    Code:
    http://swiftmailer.org/
     
  5. royserpa

    royserpa Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 28, 2011
    Messages:
    4,646
    Likes Received:
    3,492
    Gender:
    Male
    Occupation:
    Negative Options aka Rebills!
    Location:
    Royserpa
    Home Page:
    You may also try with pear mail with a decent smtp server
     
  6. Mr Daniel

    Mr Daniel Newbie

    Joined:
    Jun 23, 2014
    Messages:
    43
    Likes Received:
    5
    I agree, a proper SMTP server is must
     
  7. member8200

    member8200 Regular Member

    Joined:
    Aug 9, 2014
    Messages:
    469
    Likes Received:
    33
    I think hotmail is rejecting your email as spam. a good decent SMTP server will do the trick. try considering it.