you could do it by creating a mime-part and add it as attachement. $ical .= "BEGIN:VCALENDAR\n"; ...
$at = new Zend_Mime_Part($ical); $at->type = 'text/calendar"'; $at->disposition = Zend_Mime::DISPOSITION_INLINE; $at->encoding = Zend_Mime::ENCODING_8BIT; $at->filename = 'termin.ics'; $mail->addAttachment($at); if disposition is set to inline, it will open directly as calendar-request. outlook (2003, 2007) always shows the "accept" and "deny" buttons, the "method=publish" has no effect in disposition-inline. i could not get any information about the internal outlook implementation of iCalendar. regards, sebastian keßler 2009/10/9 Tridem <[email protected]> > > I found this function which perfectely sends meeting requests for outlook > in > icalendar format: > [URL="http://swik.net/PHP/PHP+Code+Snippets/PHP+iCal+Email/c1jfi"] > http://swik.net/PHP/PHP+Code+Snippets/PHP+iCal+Email/c1jfi[/URL]<http://swik.net/PHP/PHP+Code+Snippets/PHP+iCal+Email/c1jfi%5B/URL%5D> > > The only problem is that I can't get it working with Zend_Mail. > > The difficulty is setting the correct headers since the main methods > setBodyText() and setBodyHtml() set their own. > > Using attachments wasn't successful either. > > Any idea to achieve the correct headers? > > [CODE]Subject: Meeting Booking > From: My Name <[email protected]> > Reply-To: My Name <[email protected]> > MIME-Version: 1.0 > Content-Type: multipart/alternative; > boundary="----Meeting Booking----d3667a9b1f6cda067ce244c8102529b7" > Content-Class: urn:content-classes:calendarmessage[/CODE] > > -- > View this message in context: > http://www.nabble.com/Sending-iCal-using-Zend_Mail-tp25818865p25818865.html > Sent from the Zend Framework mailing list archive at Nabble.com. > >
