diff options
Diffstat (limited to 'apps')
-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 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); |