Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Mail sent with mail() in PHP is coming from the server hostname

Discussion in 'E-mail Discussion' started by rnawky, Feb 23, 2010.

  1. rnawky

    rnawky Member

    Jan 13, 2010
    Likes Received:
    Trophy Points:
    Ever since I transfered over to a dedicated server, all mail coming from my domain name ( is shown as coming from the server's hostname (

    Also, all mail sent is ending up in my gmail spam folder. I suspect the aforementioned issue is the result in this.

    Can anyone inform me as to why mail sent from my server is shown as coming from the servers hostname instead of the domain name the account is on?

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice