aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV
diff options
context:
space:
mode:
authorAnna <anna@nextcloud.com>2023-05-10 12:10:42 +0200
committerGitHub <noreply@github.com>2023-05-10 12:10:42 +0200
commit9e53934498ba40b120c27a5ff171740aeb1c8a57 (patch)
treefe8fe1530a116fe46684d9379f04ca6d3ed14f5a /apps/dav/lib/CalDAV
parent14cb58c0e5b4507704755a462a859c407173c21f (diff)
parented708150760505cb3571c9f6fd257d1485f71eb7 (diff)
downloadnextcloud-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.php10
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);