diff options
author | Anna <anna@nextcloud.com> | 2023-05-10 12:10:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-10 12:10:42 +0200 |
commit | 9e53934498ba40b120c27a5ff171740aeb1c8a57 (patch) | |
tree | fe8fe1530a116fe46684d9379f04ca6d3ed14f5a /apps/dav/lib/CalDAV | |
parent | 14cb58c0e5b4507704755a462a859c407173c21f (diff) | |
parent | ed708150760505cb3571c9f6fd257d1485f71eb7 (diff) | |
download | nextcloud-server-9e53934498ba40b120c27a5ff171740aeb1c8a57.tar.gz nextcloud-server-9e53934498ba40b120c27a5ff171740aeb1c8a57.zip |
Merge pull request #36118 from nextcloud/fix/caldav/invitation-outlook-compatibilty
Fix calendar emails to be outlook compatible
Diffstat (limited to 'apps/dav/lib/CalDAV')
-rw-r--r-- | apps/dav/lib/CalDAV/Schedule/IMipPlugin.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php index 329197445dd..e164e420ae3 100644 --- a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php +++ b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php @@ -299,14 +299,12 @@ class IMipPlugin extends SabreIMipPlugin { $message->useTemplate($template); - $vCalendar = $this->imipService->generateVCalendar($iTipMessage, $vEvent); - - $attachment = $this->mailer->createAttachment( - $vCalendar->serialize(), + $itip_msg = $iTipMessage->message->serialize(); + $message->attachInline( + $itip_msg, 'event.ics', - 'text/calendar; method=' . $iTipMessage->method + 'text/calendar; method=' . $iTipMessage->method, ); - $message->attach($attachment); try { $failed = $this->mailer->send($message); |