LXAdmin how do I get mail() to work?

Discussion in 'Site & Server Administration' started by Mysmasken, Nov 13, 2007.

  1. #1
    Hi guys, I'm just got a new host and I'm now using LXAdmins, it has taken me a while to figure everything out, but there is one thing I can't figure out.

    I can't send mail with PHP and mail() and I can't figure out why.

    I guess the settings are in {Server Mail Settings}
    "It is very essential that you set the my name to a properly resolvable hostname, since otherwise, many public mailservers like hotmail will reject mails from your server."

    So it asks for my name, do I just put any domain name there or what?
    I tried with one of my info's but still didn't work.

    Help please :eek:
     
    Mysmasken, Nov 13, 2007 IP
  2. Mysmasken

    Mysmasken Active Member

    Messages:
    247
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #2
    I'll pay $10 to whoever can guide me through this on MSN real quick :p
     
    Mysmasken, Nov 13, 2007 IP
  3. V3RT1G0

    V3RT1G0 Peon

    Messages:
    201
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    maybe the configuration here can help:

    http://us2.php.net/mail

    ... and set your hostname to what your server is setup on... if you want to find out your current hostname look in

    /etc/hosts or /etc/ look for files containing the hostname prefix
     
    V3RT1G0, Nov 13, 2007 IP
  4. Mysmasken

    Mysmasken Active Member

    Messages:
    247
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Thanks, but I'm a real noob and have only hosted with GoDaddy and such before.
    I can't find this "etc" and stuff :confused:
     
    Mysmasken, Nov 14, 2007 IP
  5. Mysmasken

    Mysmasken Active Member

    Messages:
    247
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Actually, I see now that it does send out e-mails, but Hotmail won't recieve them.
    My personal privat website could recieve it.
     
    Mysmasken, Nov 14, 2007 IP
  6. V3RT1G0

    V3RT1G0 Peon

    Messages:
    201
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #6
    well hotmail usually blocks most stuff, and you get to etc, by goign into ssh and browse those directories for the files i mentioned, if your a noob (i am somewhat too so dont worry) go into filebrowser and look for it manually.
     
    V3RT1G0, Nov 14, 2007 IP