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 from question.

Discussion in 'E-mail Discussions' started by TheReliableHost, Mar 3, 2010.

  1. TheReliableHost

    Joined:
    Aug 5, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    I have a reseller, who using php form mail but when mail is sent in headers.. it shows

    "server1.myservername.com"

    he want to show his own domain

    so i think giving him dedicated ip and making reverse dns .. will this solve the problem?

    Regards
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    No, dedicated IP with rDNS won't solve the issue. When an email is sent via a simple php script, the headers will display the hostname of the server rather than the domain name.

    If you want the headers to show the domain name, you will have to write the PHP script using SMTP authentication. Refer:
    How to Send Email from a PHP Script Using SMTP Authentication - About Email

    You will have to create an email account on the domain and have to specify the email ID and it's password in the script as mentioned in the above website.
     
Loading...

Share This Page