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/dav/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/dav/lib')
-rw-r--r-- | apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php b/apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php index c2e68605d17..23e8ffc7e99 100644 --- a/apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php +++ b/apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php @@ -36,6 +36,7 @@ use OCP\IConfig; use OCP\IL10N; use OCP\IURLGenerator; use OCP\L10N\IFactory as L10NFactory; +use OCP\Mail\AutoSubmittedValue; use OCP\Mail\IEMailTemplate; use OCP\Mail\IMailer; use OCP\IUser; @@ -131,6 +132,7 @@ class EmailProvider extends AbstractProvider { } $message->setTo([$emailAddress]); $message->useTemplate($template); + $message->setAutoSubmitted(AutoSubmittedValue::AUTO_GENERATED); try { $failed = $this->mailer->send($message); |