Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Aug 2008
    Location
    India
    Posts
    8
    cPanel/Enkompass Access Level

    Root Administrator

    Default php mail from question.

    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. #2
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    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.

Similar Threads & Tags
Similar threads

  1. php mail from question.
    By TheReliableHost in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-04-2010, 12:28 PM
  2. Question about PHP security, setting up multiple php.ini files?
    By sirbrent in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-01-2008, 10:58 AM
  3. PHP/Mail Question
    By Sklndr in forum E-mail Discussions
    Replies: 1
    Last Post: 11-07-2007, 08:33 PM
  4. mail server setup & php config question
    By hamoe in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-23-2004, 04:05 PM
  5. php e-mail question
    By Markwaugh in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-30-2003, 09:16 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube