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.

PHP Mail sent Via hostname

Discussion in 'E-mail Discussions' started by pavarta, Dec 11, 2011.

  1. pavarta

    pavarta Registered

    Joined:
    Dec 11, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ponorogo, Indonesia
    cPanel Access Level:
    Root Administrator
    Hi, how to remove hostname on email recipients. i send with PHP mail. help me to check at my picture below :
    mailphp.png
     
  2. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    I am afraid it's not possible to remove server hostname from email headers. It's default setting in all cPanel servers.
     
  3. pavarta

    pavarta Registered

    Joined:
    Dec 11, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ponorogo, Indonesia
    cPanel Access Level:
    Root Administrator
    Is there any other way :'(. Some one help me
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    The default behavior of Exim is to use the cPanel username and hostname of the server to construct the envelope-sender address. Most applications that call the Exim/Sendmail binary will pass the -f switch along with the proper email address to keep that from happening.

    If you can configure the mailer to use SMTP and authenticate with SMTP AUTH, this will set the correct "Return-Path" in the headers. The other option is to make sure that the application is using the 5th argument to the PHP mail() function to send the '-f' switch to sendmail so that it sets the correct "Return-Path".

    Thank you.
     
  5. pavarta

    pavarta Registered

    Joined:
    Dec 11, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ponorogo, Indonesia
    cPanel Access Level:
    Root Administrator
    so what should I do to remove the hostname in the email recipient? give instruction step by step please. i'm new user :(
     
  6. pavarta

    pavarta Registered

    Joined:
    Dec 11, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ponorogo, Indonesia
    cPanel Access Level:
    Root Administrator
    any body help me
     
  7. hbouma

    hbouma Well-Known Member

    Joined:
    Jun 8, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    It would be nice if this was documented somewhere as people get confused why the from/return-path/reply-to fields in the message header get ignored in their mail($to,$subject,$message,$headers) call.

    Hal
     
  8. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page