From 6ac89a63150f2aa4ed84f27c8d65f6e5e3556111 Mon Sep 17 00:00:00 2001 From: Florian Schlichting Date: Sun, 10 Jan 2016 22:23:18 +0100 Subject: [PATCH] comment in existing email scheduling code this reverts 9df80fbde19e561699af33b591e4fdb6c7bbf9cf fixing the crash by requiring EMail.php (from AWL) Note: this isn't called when inviting people yet, only when replying to an external organizer or when cancelling a meeting with external attendees. Actually sending these emails instead of just logging them also requires setting $c->iMIP->send_email = 1; --- inc/schedule-functions.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/inc/schedule-functions.php b/inc/schedule-functions.php index 2ee96123..e9f38e0b 100644 --- a/inc/schedule-functions.php +++ b/inc/schedule-functions.php @@ -336,6 +336,7 @@ function deliverItipCancel( vCalendar $iTIP, vProperty $attendee, WritableCollec } require_once('Multipart.php'); +require_once('EMail.php'); /** * Send an iMIP message since they look like a non-local user. @@ -347,8 +348,7 @@ require_once('Multipart.php'); function doImipMessage($method, $to_email, vCalendar $itip) { global $c, $request; -/* - header( 'Debug: Sending iMIP '.$method.' message to '.$to_email); + dbg_error_log( 'schedule' 'Sending iMIP %s message to %s', $method, $to_email ); $mime = new MultiPart(); $mime->addPart( $itip->Render(), 'text/calendar; charset=UTF-8; method='.$method ); @@ -402,5 +402,4 @@ EOTEMPLATE; else { $email->Send($mime->getMimeHeaders()); } -*/ }