Compare commits

...

1 Commits

Author SHA1 Message Date
Josh 5cab1a1035 fix(mail): Log hint when mail_from_address may be wrong
Fixes #25162 

Signed-off-by: Josh <josh.t.richards@gmail.com>
2024-06-21 15:07:38 -04:00
+2 -1
View File
@@ -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';
}