The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mail() hostname question

Discussion in 'E-mail Discussions' started by Jorge, Jul 13, 2006.

  1. Jorge

    Jorge Well-Known Member

    Joined:
    Feb 19, 2003
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    There's any way to hide the hostname on email sent through php mail()?
    I told to one of my customer to use a FROM header on the sending php script, however, still says username@host.hostname.net as the sender.

    I'm not sure if this can be configured on the php mail() options or anywhere.
    Is it possible?
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    The actual sender of the email will always, if you have phpsuexec enabled, be user@hostname because the actual sender is the user at the given host. Otherwise it will be nobody@hostname for the exact same reasons.

    You can set the From: header, and this is the value most commonly displayed in email clients. This is specified in the fourth parameter of the PHP mail() function.
     
  3. Jorge

    Jorge Well-Known Member

    Joined:
    Feb 19, 2003
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Just found a solution :)

    Add

    trusted_users = USERNAME

    on exim.conf :)
     
Loading...

Share This Page