Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: PHP Mail

  1. #1
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default PHP Mail

    Hey,

    All the PHP mail I send out (e.g. mail(); ) goes straight to spam.

    Anyway I can combat this e.g. set headers or something?

    Thanks,
    Jake.

  2. #2

    Default

    Try changing the From: headers? It might just be your E-mail provider's filter tho?

  3. #3
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    GoogleMail and Hotmail both filter as spam.

  4. #4
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    It will be there sender application header, try to change it.



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  5. #5

    Default

    Try setting headers to change the From:

  6. #6
    Join Date
    Jan 2007
    Location
    Canada eh?
    Posts
    766
    Tokens
    75

    Default

    Quote Originally Posted by JH View Post
    GoogleMail and Hotmail both filter as spam.
    No they don't? It probably has something to do with the content/subject/headers of the message being sent and your spam/junk filtering settings on your email account.

  7. #7
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    How the hell can an Email provider block a PHP Function - I think it's because of the hostname/ as when you use it, it's from

    [email protected]

    (This is basically the format, I got this from my web hosting acc as a test more or less.)

    [email protected]

    an Email provider can't block a php function, and microsoft don't even use php, they'd have to use it too block it?

  8. #8
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    I used headers off of PHP.net and edited them to my needs.

    PHP Code:
        $msg "Message..."
        
    $subject "Mail";
        
    $headers 'From: '.$email "\r\n" .
        
    'Reply-To: '.$email "\r\n" .
        
    'X-Mailer: PHP/' phpversion();
        
    mail($email$subject$msg$headers); 
    Hi, names James. I am a web developer.

  9. #9
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    I think it's cause of this bit:

    'X-Mailer: PHP/' . phpversion();

    Jake.

  10. #10
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    No, that helps avoid spam, using x-mailer.

    I'm having trouble avoiding spam too, and I set a lot of headers using a mailing class.

    I don't understand to be honest ;S.

    If anyone has some tips please say
    Last edited by Hypertext; 15-04-2008 at 03:57 PM.
    How could this hapen to meeeeeeeeeeeeeee?lol.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •