Comments on: Generate Outlook Calendar Events with PHP and iCalendar http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/ I will not fix your computer. Tue, 04 Aug 2020 22:34:33 +0000 hourly 1 https://wordpress.org/?v=4.7.26 By: MG http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-287197 Wed, 01 Jul 2015 11:15:38 +0000 http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-287197

I am trying to create calender event for outlook to achieve the same I am using
with Yii, PHPMailer and above code but, in reply in oulook inbox I am getting reply like this and it is not showing attached file as well.

OUTPUT

BEGIN:VCALENDAR VERSION:2.0 PRODID:-//Foobar Corporation//NONSGML Foobar//EN METHOD:REQUEST BEGIN:VEVENT UID:20150701T163528-439844097-example.com DTSTAMP:20150701T163528 DTSTART:20080413T000000 SUMMARY:TEST DESCRIPTION: this is just a test END:VEVENT END:VCALENDAR

Code
$header = ‘MIME-Version: 1.0’ . “\n”;
$header .= ‘Content-type: text/html; charset=utf-8’ . “\n”;
$header .= “Content-Type: text/Calendar”;
$header .= “Content-Disposition: inline; filename=calender.ics”;

$message = “BEGIN:VCALENDAR\n”;
$message .= “VERSION:2.0\n”;
$message .= “PRODID:-//Foobar Corporation//NONSGML Foobar//EN\n”;
$message .= “METHOD:REQUEST\n”; // requied by Outlook
$message .= “BEGIN:VEVENT\n”;
$message .= “UID:”.date(‘Ymd’).’T’.date(‘His’).”-“.rand().”-example.com\n”; // required by Outlok
$message .= “DTSTAMP:”.date(‘Ymd’).’T’.date(‘His’).”\n”; // required by Outlook
$message .= “DTSTART:20080413T000000\n”;
$message .= “SUMMARY:TEST\n”;
$message .= “DESCRIPTION: this is just a test\n”;
$message .= “END:VEVENT\n”;
$message .= “END:VCALENDAR\n”;

Please help me to resolve this issue

Reply  |  Quote
]]>
By: Kuku http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-62936 Tue, 28 Jan 2014 10:56:15 +0000 http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-62936

Thanks for this. Here I found another example of sending meeting request to multiple participants in Outlook: http://arturito.net/2014/01/27/creat…g-request-php/ and for more options VCalendar has a reference on wiki : http://en.wikipedia.org/wiki/ICalendar

Reply  |  Quote
]]>
By: White Elephant Gifts http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-24875 Tue, 18 Dec 2012 04:39:22 +0000 http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-24875

Image 23. Fire. For many reasons this group are the ones that eat of
out boxes and bags.

Reply  |  Quote
]]>
By: Mika Andrianarijaona http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-24134 Tue, 20 Nov 2012 11:18:55 +0000 http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-24134

Thank you very much, your post was really helpful, I missed the “METHOD:REQUEST” parameter and the event wasn’t correctly displayed as an invitation in IE

Reply  |  Quote
]]>
By: Hamid http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-24000 Mon, 12 Nov 2012 11:30:01 +0000 http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-24000

Thanks to all of you.
I’ve been searching for that for a while.

Reply  |  Quote
]]>
By: Marc http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-22430 Sat, 16 Jun 2012 14:09:12 +0000 http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-22430

The script gave me inspiration for the outlook calendar I need to create for my sailing club (http://www.shirehamptonsailingclub.co.uk). Keep the good work.

Reply  |  Quote
]]>
By: foxvor http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-22014 Mon, 23 Apr 2012 22:53:44 +0000 http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-22014

Someone asked about line breaks.

The correct format is:
BACKSLASH (US-ASCII decimal 92) followed by a LATIN CAPITAL LETTER N (US-ASCII decimal 78)

as noted in this documentation: http://www.kanzaki.com/docs/ical/text.html

It also says that small “n” works, but it doesn’t (at least not with the code here presented), I tried it with capital N and it works nicely.

Thanks by the way to the author, this was really helpful, I hope I can give back something with this reply.

Reply  |  Quote
]]>
By: Ben http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-21597 Mon, 05 Mar 2012 14:44:01 +0000 http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-21597

@ Jeff:

Jeff –

I have this exact same issue. Did you ever find a solution?

Thanks,
Ben

Reply  |  Quote
]]>
By: Jeff http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-20412 Wed, 28 Sep 2011 03:32:57 +0000 http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-20412

Great discussion here. I realize this is an older post, but hopefully someone has seen the issue I am experiencing. I am sending an ICS file as an email attachment from our java web app. Everything works fine if I send the email to an Outlook user that is not on an Exchange server. Their email has the correct “Accept/Reject” buttons and their calendar gets updated accordingly.

If the user is on an Exchange server, however, this does not happen. They get a meeting invite, but it lists them as the organizer and they cannot change the meeting details. Then they are unable to save the meeting to their calendar.

Has anyone else experienced this? Any ideas or suggestions are appreciated.

Reply  |  Quote
]]>
By: dipa http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-20216 Wed, 07 Sep 2011 12:21:57 +0000 http://www.terminally-incoherent.com/blog/2008/04/14/generate-outlook-calendar-events-with-php-and-icalendar/#comment-20216

@ Vamsi Praveen K:
Please skip “:” after “candiadate”, office” by “\:”

Reply  |  Quote
]]>