6 * This class is responsible for sending out iMIP messages. iMIP is the
7 * email-based transport for iTIP. iTIP deals with scheduling operations for
10 * If you want to customize the email that gets sent out, you can do so by
11 * extending this class and overriding the sendMessage method.
15 * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
16 * @author Evert Pot (http://www.rooftopsolutions.nl/)
17 * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
19 class Sabre_CalDAV_Schedule_IMip_Mock extends Sabre_CalDAV_Schedule_IMip {
21 protected $emails = array();
24 * This function is reponsible for sending the actual email.
26 * @param string $to Recipient email address
27 * @param string $subject Subject of the email
28 * @param string $body iCalendar body
29 * @param array $headers List of headers
32 protected function mail($to, $subject, $body, array $headers) {
34 $this->emails[] = array(
36 'subject' => $subject,
38 'headers' => $headers,
43 public function getSentEmails() {