summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2023-02-20 18:57:56 +0100
committerAnna Larch <anna@nextcloud.com>2023-02-21 14:37:11 +0100
commited708150760505cb3571c9f6fd257d1485f71eb7 (patch)
treeb47d2d820e643ef1bc65c8c8499aed2c759dc52f /apps
parent5fcb55a2a9653575eec1c9d3551d6a887a22b84f (diff)
downloadnextcloud-server-ed708150760505cb3571c9f6fd257d1485f71eb7.tar.gz
nextcloud-server-ed708150760505cb3571c9f6fd257d1485f71eb7.zip
Fix calendar emails to be outlook compatible
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps')
-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 d4c2976fc1a..bbe6b1ec740 100644
--- a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
+++ b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
@@ -285,14 +285,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);