0

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

2
Contributors
5
Replies
24
Views
4 Years
Discussion Span
Last Post by LastMitch
0

I'm trying to have it auto book a google resoure calendar by sending an email using phpmailer with an ics attachment

I assume you got **ics **code from here:

http://code.google.com/p/calagator/wiki/IcalLocation#Complete_VEVENT_and_VVENUE_example

I assume you try this:

http://support.google.com/calendar/answer/44105?hl=en

The issue is in your PHPMailer not on your ics file because I check the code to see it match the code from the link.

Read this:

http://board.phpbuilder.com/showthread.php?10377825-RESOLVED-PHP-Email-.ics-Calendar-File

Edited by LastMitch: grammer

0

I've got the event attaching properly (i think) that wasn't my issue

i can see the event and i get an add to callendar option from it which works

but i have no reply options
and when i send it to a resource calendar its not being added automatically

0

but i have no reply options and when i send it to a resource calendar its not being added automatically

The only thing I can think of is the phpmailer not configure correctly.

There's nothing wrong with the ics file that you provided so it's the phpmailer or another code you are using.

0

its apparantly a google issue they have the calendars locked out to only work from with there system

0

its apparantly a google issue they have the calendars locked out to only work from with there system

OK. I didn't know it was a google issue.

Did you fixed the issue or you have a work-around(a code) that solve google issue?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.