I have a calendar built for course scheduling and I'm trying to have it auto book a google resoure calendar by sending an email using phpmailer with an ics attachment
ics file
BEGIN:VCALENDAR
PRODID:-//company// Course Scheduler//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART:20130411T170000
DTEND:20130411T173000
DTSTAMP:20130410T110314Z
ORGANIZER;CN=my@Email.com:MAILTO:my@Email.com
UID:unique_id@email.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Test;X-NUM-GUESTS=0:MAILTO:myresource@group.calendar.google.com
CREATED:20130410T110314Z
DESCRIPTION:
test
LAST-MODIFIED:20130410T110314Z
LOCATION:5th Floor
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:test
TRANSP: OPAQUE
END:VEVENT
END:VCALENDAR
relevant part of email func
$mail->AddStringAttachment($invite[1], $invite[0], "base64", "text/calendar; charset=utf-8; method=PUBLISH");
i get the email on my account showing the event details and a "add to cal" link
nothing appears on the resource calendar though
any thoughts?
i've tried changing ics method to request but then even on my account google cant seem to read the ics detail i just see an ics attachment