rely on gethostname()

This commit is contained in:
Serghey Rodin 2013-08-08 13:21:06 +03:00
parent 44d78bbef6
commit 2737f52fa1

View file

@ -23,7 +23,7 @@ if (!empty( $data['config']['LANGUAGE'])) {
require_once('/usr/local/vesta/web/inc/i18n/'.$_SESSION['language'].'.php');
// Define vars
$from = 'Vesta Control Panel <vesta@'.$_SERVER["HOSTNAME"].'>';
$from = 'Vesta Control Panel <vesta@'.gethostname().'>';
$to = $argv[3]."\n";
$subject = $argv[2]."\n";
$mailtext = file_get_contents("php://stdin");