Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I've created an application which will build ics files and email them to a user. I'd like for events sent from my application to be automatically added to the user's calendar without having to accept the invitation. This seems like it's possible in the calendar settings, but it only seems to work when I create an event through the gmail interface, but not with my app. If I compare the ics file created by my app vs the one created through gmail, mine is lacking a few things:

PRODID, CREATED, DTSTAMP, UID, ORGANIZER, ATTENDEE, SEQUENCE, TRANSP

Would any of those paramaters cause the event not to be added? Or is it something else?

Thanks for any help you can provide.

share|improve this question
add comment

2 Answers

I've go an open question on Stackoverflow my question, I'm creating an ics and emailing to my iPhone.
This can be added, but only with user intervention.

The most important properties I've found are ProdID, UID and DTStamp.

You should also check that the VERSION property is set to 2.0, (1.0 can give problems,) especially with Outlook.

share|improve this answer
add comment

I'm working on a similar issue where I need to forward entries from an ancient calendar product to my google calendar.

I have been able to successfully e-mail a hand-created (for now) .ics file from one e-mail account to my google e-mail account, and have it show up in my calendar.

On my first attempt, I just put in the bare minimum to make it a vCalendar entry. Start date, end date, date created, and the event description. That made it to my gmail account, but not directly into the calendar.

The second attempt included all from the first attempt plus PRODID, VERSION, CALSCALE, and ATTENDEE. PRODID was a totally made up entry. VERSION was set to 2.0. CALSCALE was set to GREGORIAN, and the ATTENDEE information was a direct lift out of an entry I sent myself just to look at from my google calendar. It's a fairly long entry, and may not be needed. But I havent tried without yet. I sent that file, and it made it all the way into my calendar automatically. It was still in my unopened e-mail, but it did make it on to my calendar.

I was also able to take a similar file and add a VALARM section to successfully add a popup alarm for my phone.

I have not been able to automatically remove or change a calendar entry by the same method yet. Both of which I need to be able to do.

Some additional testing I need to do involves putting the entries on something other than my base calendar. For example a calendar called "Work" that I've created and subscribed to. I suspect it has to do with the CN reference in ATTENDEE, but time will tell.

If I come up with any additional details, I will post them here.

EDIT: The CN reference does not place the entry in the calendar I want. Continuing to explore.

EDIT: Some additional information. ATTENDEE is required to get the entry into the calendar via e-mail. The entry will only, at this point anyway, go into the base/primary user calendar. At a minimum, ATTENDEE seems to require:

ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED
 :mailto:username@emailserver

Where username@emailserver is the actual email address of the recipient.

I've tried with both METHOD:PUBLISH and METHOD:REQUEST. Both act the same.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.