aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh <josh.t.richards@gmail.com>2024-06-21 15:07:38 -0400
committerGitHub <noreply@github.com>2024-06-21 15:07:38 -0400
commit5cab1a103591b9e9b1e146357b393db6bea3a61a (patch)
treeecac8672ba9dd1983801c0d6258793aef16de93c
parentda8e1c192d1ec8b9ed4ee0f6492746e5ec054669 (diff)
downloadnextcloud-server-jtr/fix-25162.tar.gz
nextcloud-server-jtr/fix-25162.zip
fix(mail): Log hint when mail_from_address may be wrongjtr/fix-25162
Fixes #25162 Signed-off-by: Josh <josh.t.richards@gmail.com>
-rw-r--r--lib/public/Util.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php
index 4cee9addf10..a7cfdb4d6e4 100644
--- a/lib/public/Util.php
+++ b/lib/public/Util.php
@@ -310,7 +310,8 @@ class Util {
return $defaultEmailAddress;
}
- // in case we cannot build a valid email address from the hostname let's fallback to 'localhost.localdomain'
+ // in case we cannot build a valid email address from the hostname we log an error and fallback to 'localhost.localdomain' for now
+ \OCP\Server::get(LoggerInterface::class)->error('Unable to determine default email address ("mail_from_address" may be wrong). Using ' . $user_part . '@localhost.localdomain for the time being.');
return $user_part.'@localhost.localdomain';
}