Change email sender for sharing mail and add footer to mails

Hi,
how can I change the email sender name for all mails from “XY shared a file with you” to a name for alle users?

And where can I add a footer to all emails?

Thanks

Hello cherrycoding,

have you already took a look at Nextcloud docs? Nextcloud configuration / Email could be the right place for you.

Have a nice day
Wolfgang

Hi,
thanks for your reply!
I’ve tried it as descriped with a customapp and created a file in /apps/customapp/lib/MyEmailTemplate.php
And registered it with:
‘mail_template_class’ => ‘OCA\CustomApp\MyMailTemplate’,

But the Content of $footer is not loaded. If I add the $footer in lib/private/Mail/EMailTemplate.php it works but it will be replaced after update.

Also I found no way to set the sender always to a default name so not username xy shared the file xy with you just MyProject shared some files with you

Thanks