PDA

View Full Version : How to change the admin email address.



rongoral
April 12th, 2010, 07:39 PM
I need to have the administrative email address changed such that the PHP global var $_SERVER['SERVER_ADMIN'] displays a relevant email address instead of the spam provoking [email protected] I'm sure this needs to be changed in the httpd.conf file, so should I open a ticket to get this changed or is there some functionality in the cpanel that I just haven't found?

Peace in Christ -
Ron

Brian
April 12th, 2010, 09:01 PM
What server is this on? I can set the default mail from to [email protected] (we have to take our reseller's into consideration for the naming).

rongoral
April 13th, 2010, 05:05 AM
I am on cp4.

Max
April 13th, 2010, 07:42 PM
Ron,
You can set the from email address in your scripts.
We have a forum post on how to include the from headers in PHP: http://forum.hostek.com/showthread.php?119-Using-PHP-to-Send-E-mail

PHP uses the Apache directive ServerAdmin for its $_SERVER['SERVER_ADMIN'] variable. If you are needing that changed, this is something we have to change for your domain on our end.
You can send us an email to [email protected] with the details and our support techs will get it changed for you.

- Max

rongoral
April 14th, 2010, 02:12 AM
Thanks Max. My concern is with the various error pages that may show up. I know I need to customize those yet, but the default is equivalent to $_SERVER['SERVER_ADMIN']. So, I will send you an email. :)