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:
    660
    Likes Received:
    97
    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,986
    Likes Received:
    3,739
    Gender:
    Male
    Occupation:
    Negative Options aka Rebills!
    Location:
    Exploiting Loopholes!
    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:
    660
    Likes Received:
    97
    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:
    974
    Likes Received:
    680
    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,986
    Likes Received:
    3,739
    Gender:
    Male
    Occupation:
    Negative Options aka Rebills!
    Location:
    Exploiting Loopholes!
    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:
    475
    Likes Received:
    33
    I think hotmail is rejecting your email as spam. a good decent SMTP server will do the trick. try considering it.
     
  8. Dennis Wyatt

    Dennis Wyatt Newbie

    Joined:
    Feb 3, 2017
    Messages:
    48
    Likes Received:
    3
    Gender:
    Male
    Hello I need for some mass mailing. Looking for php mailing script.here is my Skype I'd Dennis.wyattt001. Add me and you can drop yours too
     
  9. Ins@nity666

    [email protected] Newbie

    Joined:
    Jan 25, 2017
    Messages:
    6
    Likes Received:
    2
    Gender:
    Female
    well your issue is simple what you need to do is send the emails from a authenticated domain and spoof the sender that way the hotmail will not block the email they using email scanners like mime cast
     
    • Thanks Thanks x 1