*Content-Transfer-Encoding: multipart/alternative *
makes no sense, please dont´t use the 3rd parameter
in the setBodyText-function, so it will use the standard
"quoted-printable" decoding.

i guess the problem could be the line-delimiters. depending
on your editor-settings this could be linux/win/mac.
try to quote them directly, typing the ical-content in separate lines:

ical .= "foobar\n";
ical .= "foobar\n";
ical .= "foobar\n";

the headers and the general solution should do it, as i´m
using the same approach and it works for me.

if outlook denys the ical-format it definitively is the generation
of the ical you should look at.

here is my working ical-example:

$ical .= "BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
METHOD:PUBLISH
DTSTART:20100313T070000Z
DTEND:20100314T073000Z
SEQUENCE:0
UID:$uid
DTSTAMP:$tstamp
SUMMARY:test\ntest\n\n
PRIORITY:5
X-MICROSOFT-CDO-IMPORTANCE:1
CLASS:PUBLIC
END:VEVENT
END:VCALENDAR";

kind regards,
sebastian keßler


2009/10/12 Tridem GmbH, [email protected] <[email protected]>

>  Unfortunately that wasn’t the problem. The different headers still seem
> to cause the ‚unsupported internet calendar messaging‘.
>
> I can open the calendar, though outlook is warning me that i does not
> include any appointments.
>
>
>
> Here are the 2 headers. The first one was produced by the well working php
> function I mentioned in the beginning.
>
> The second one ist the header we have so far by now.
>
>
>
> I think it has something to do with the ‚ multipart/mixed‘ header created
> by the setBodyText() method…
>
>
>
> 1) WORKING
>
> …
>
> From: My Name <[email protected]>
>
> Reply-To: My Name <[email protected]>
>
> MIME-Version: 1.0
>
> Content-Type: multipart/alternative;
>
>                 boundary="----Meeting
> Booking----20d7ae1209e3fded1c4074d99e66cd5f"
>
> Content-Class: urn:content-classes:calendarmessage
>
> Status:
>
>
>
> 2) CURRENTLY NOT WORKING
>
> …
>
> From: My Name <[email protected]>
>
> Reply-To: My Name <[email protected]>
>
> Content-Class: urn:content-classes:calendarmessage
>
> Date: Mon, 12 Oct 2009 15:13:52 +0200
>
> Content-Type: multipart/mixed; charset="utf-8";
>
>                 boundary="=_bcf3e757c5ac5be0b440efd17331641a"
>
> Content-Transfer-Encoding: multipart/alternative
>
> Content-Disposition: inline
>
> MIME-Version: 1.0
>
> Status:
>
>
>
>
>
> *Von:* Sebastian Keßler [mailto:[email protected]]
>
>  hi michael,
>
> the uid seems to be too long for outlook, try
> using the date-function to create the uid like in the example:
>
> $uid = date('Ymd').'T'.date('His')."-".rand()."@foo.com";
>
> regards
> sebastian keßler
>

Reply via email to