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;
This commit is contained in:
Florian Schlichting 2016-01-10 22:23:18 +01:00
parent 41f6267353
commit 6ac89a6315

View File

@ -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());
}
*/
}