Skip to content

Commit 2737f52

Browse files
committed
rely on gethostname()
1 parent 44d78bb commit 2737f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/inc/mail-wrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
require_once('/usr/local/vesta/web/inc/i18n/'.$_SESSION['language'].'.php');
2424

2525
// Define vars
26-
$from = 'Vesta Control Panel <vesta@'.$_SERVER["HOSTNAME"].'>';
26+
$from = 'Vesta Control Panel <vesta@'.gethostname().'>';
2727
$to = $argv[3]."\n";
2828
$subject = $argv[2]."\n";
2929
$mailtext = file_get_contents("php://stdin");

0 commit comments

Comments
 (0)