My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
IMipHandler  
Updated Apr 20, 2012

IMipHandler

The IMipHandler is responsible for sending emails. This is used since version 1.6.

The reason this was added, was because iCal wrongfully assumes that a CalDAV server supports some parts of the CalDAV scheduling extension.

So by using the IMipHandler, SabreDAV will be able to send the following emails on your behalf:

  • Invitation to an event
  • Accepting an event
  • Declining an event
  • Deleting an event

In the future this system will also be used for other caldav-scheduling features.

Usage

To use the IMipHandler, simply attach it to Sabre_CalDAV_Plugin.

$caldavPlugin = new Sabre_CalDAV_Plugin();
$caldavPlugin->setIMipHandler(
    new Sabre_CalDAV_Schedule_IMip('no-reply@example.org')
);

You must specify a proper From: address. This class uses PHP's mail() function under the hood. To use some other system, it's possible to subclass it.

Comment by mike.sco...@gmail.com, Apr 20, 2012
new Sabre_CalDAV_IMipHanlder('no-reply@example.org')

should be

new Sabre_CalDAV_Schedule_IMip('no-reply@example.org')

Comment by project member evert...@gmail.com, Apr 20, 2012

Thank you!


Sign in to add a comment
Powered by Google Project Hosting