Use noreply@ as email address for share emails

Fixes #26683

Before it used the instance name, which a) doesn't make sense to randomly guess email addresses and b) could contain characters that are not allowed in email addresses like spaces.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2021-05-28 11:13:22 +02:00 committed by backportbot[bot]
parent b7fbab8726
commit d1e5039890
1 changed files with 1 additions and 1 deletions

View File

@ -910,7 +910,7 @@ class Manager implements IManager {
$instanceName $instanceName
] ]
); );
$message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]); $message->setFrom([\OCP\Util::getDefaultEmailAddress('noreply') => $senderName]);
// The "Reply-To" is set to the sharer if an mail address is configured // The "Reply-To" is set to the sharer if an mail address is configured
// also the default footer contains a "Do not reply" which needs to be adjusted. // also the default footer contains a "Do not reply" which needs to be adjusted.