7

I have to send a meeting invite for the team and here's my ical

$ical =    'BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
VERSION:2.0
METHOD:REQUEST
BEGIN:VEVENT
ORGANIZER:MAILTO:'.$from_address.'
DTSTART:'.$dtstart.'
DTEND:'.$dtend.'
LOCATION:'.$meeting_location.'
SEQUENCE:0
UID:'.$cal_uid.'
DTSTAMP:'.$todaystamp.'
DESCRIPTION:'.$meeting_description.'
SUMMARY:'.$subject.'
ATTENDEE;RSVP=TRUE:mailto:abcxzy@gmail.com
ORGANIZER;CN=abcxzy@gmail.com:mailto:abcxzy@gmail.com
PRIORITY:5
CLASS:PUBLIC
STATUS:CONFIRMED
TRANSP:TRANSPARENT
END:VEVENT
END:VCALENDAR';

Ended up like

$from_name  = "John";
$from_address   = "abcxzy@gmail.com";

$result = sendIcalEmail($firstname,$lastname,...(something)...$message);

It is working fine for all the recipients.

I have added the user of from mail id to the senders list too which is the organizer mail id (abcxzy@gmail.com) so that he too can receive the invite but when I open the ical file it is not showing the time slot for the organizer but for all the other users it is displayed.

What might be the reason which is causing the issue.

Thanks inadvance

John
  • 565
  • 8
  • 23
  • Working example? When I used the above code, all the attendees can able to see the meeting time in their calendar but in the organizer calendar it's displaying it as "Meeting not found". – John Oct 04 '18 at 13:44

1 Answers1

3

The organizer of a meeting is not necessarily an attendee. For example, an administrative assistant may schedule a meeting on behalf of an executive without attending.

On the other hand, iCalendar has a ROLE parameter (https://www.rfc-editor.org/rfc/rfc5545#section-3.2.16) to define the... role of a participant, and one of the possible values is "CHAIR".

So in practice, most clients end up putting putting the Organiser in 2 properties:

  • as the ORGANIZER
  • as an ATTENDEE with ROLE=CHAIR.

Now another aspect is that in the iTIP/iMIP design, the organiser is not supposed to receive an invitation as the organiser's calendar client is the one triggering the invite. So one can expect strange behaviour coming from this. See also ics not updating organizer calendar

Community
  • 1
  • 1
Arnaud Quillaud
  • 4,420
  • 1
  • 12
  • 8
  • Thanks for the reponse. I tried ATTENDEE;ROLE=CHAIR:mailto:abcxzy@gmail.com but still the organiser isn't receiving any time slot in his calendar. – John Sep 18 '18 at 11:25
  • Updated my response as I misinterpreted part of the scenario. Not much of a solution I am afraid. – Arnaud Quillaud Sep 19 '18 at 14:51