Explorar el Código

rely on gethostname()

Serghey Rodin hace 12 años
padre
commit
2737f52fa1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      web/inc/mail-wrapper.php

+ 1 - 1
web/inc/mail-wrapper.php

@@ -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");