diff options
author | Bennet Becker <bbecker@pks.mpg.de> | 2022-12-22 13:37:58 +0100 |
---|---|---|
committer | Bennet Becker <dev@bennet.cc> | 2022-12-23 19:26:38 +0100 |
commit | 7a9f4fbbbeb413d96bf71e953886c1b6b5639bca (patch) | |
tree | 4b28e309e9ce8ee29b5e05082a7f1a9a0075a99d /apps/settings/lib | |
parent | b3d9b57815bc74a157f33388af3dfc9f79cf1df1 (diff) | |
download | nextcloud-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.php | 2 |
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); } } |