Update mailstream/phpmailer/class.phpmailer.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
pull/1581/head^2^2
Artur Weigandt 2024-12-05 18:23:51 +01:00 committed by Hypolite Petovan
parent a71db771d9
commit 729b6e5210
1 changed files with 1 additions and 1 deletions

View File

@ -3287,7 +3287,7 @@ class PHPMailer
$result = 'localhost.localdomain'; $result = 'localhost.localdomain';
if (!empty($this->Hostname)) { if (!empty($this->Hostname)) {
$result = $this->Hostname; $result = $this->Hostname;
} elseif (array_key_exists('SERVER_NAME', $_SERVER) and !empty($_SERVER['SERVER_NAME'])) { } elseif (!empty($_SERVER['SERVER_NAME'])) {
$result = $_SERVER['SERVER_NAME']; $result = $_SERVER['SERVER_NAME'];
} elseif (function_exists('gethostname') && gethostname() !== false) { } elseif (function_exists('gethostname') && gethostname() !== false) {
$result = gethostname(); $result = gethostname();