summaryrefslogtreecommitdiffstats
path: root/apps/settings/lib
diff options
context:
space:
mode:
authorBennet Becker <bbecker@pks.mpg.de>2022-12-22 13:37:58 +0100
committerBennet Becker <dev@bennet.cc>2022-12-23 19:26:38 +0100
commit7a9f4fbbbeb413d96bf71e953886c1b6b5639bca (patch)
tree4b28e309e9ce8ee29b5e05082a7f1a9a0075a99d /apps/settings/lib
parentb3d9b57815bc74a157f33388af3dfc9f79cf1df1 (diff)
downloadnextcloud-server-7a9f4fbbbeb413d96bf71e953886c1b6b5639bca.tar.gz
nextcloud-server-7a9f4fbbbeb413d96bf71e953886c1b6b5639bca.zip
Setting Auto-Submitted header for calendar events and new user mail
Signed-off-by: Bennet Becker <bbecker@pks.mpg.de>
Diffstat (limited to 'apps/settings/lib')
-rw-r--r--apps/settings/lib/Mailer/NewUserMailHelper.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/settings/lib/Mailer/NewUserMailHelper.php b/apps/settings/lib/Mailer/NewUserMailHelper.php
index 50502ed1d39..5da1082455e 100644
--- a/apps/settings/lib/Mailer/NewUserMailHelper.php
+++ b/apps/settings/lib/Mailer/NewUserMailHelper.php
@@ -35,6 +35,7 @@ use OCP\IConfig;
use OCP\IURLGenerator;
use OCP\IUser;
use OCP\L10N\IFactory;
+use OCP\Mail\AutoSubmittedValue;
use OCP\Mail\IEMailTemplate;
use OCP\Mail\IMailer;
use OCP\Security\ICrypto;
@@ -181,6 +182,7 @@ class NewUserMailHelper {
$message->setTo([$email => $user->getDisplayName()]);
$message->setFrom([$this->fromAddress => $this->themingDefaults->getName()]);
$message->useTemplate($emailTemplate);
+ $message->setAutoSubmitted(AutoSubmittedValue::AUTO_GENERATED);
$this->mailer->send($message);
}
}