Hi, The correct way to enable email notification to attendees on event creation is by adding an extra element to your entry -
<gCal:sendEventNotifications value="true"/> To do this with the Java client library, you do - entry.setSendEventNotifications(true); This element will trigger an email to be sent to each guest of the event you just created. Hope that helps, Austin On Wed, May 21, 2008 at 7:28 AM, sam_thrust <[EMAIL PROTECTED]> wrote: > > I tried to use setAbsoluteTime of the Reminder class to send reminder > to all the attendees whenever an event is being created. But it always > throws an exception. Following is the code snippet I'm trying to use > > Method methodType = Method.EMAIL; > Reminder reminder = new Reminder(); > GregorianCalendar cal = new GregorianCalendar(); > cal.add(Calendar.SECOND, 60); > reminder.setAbsoluteTime(new > DateTime(cal.getTimeInMillis())); > reminder.setMethod(methodType); > > myEvent.getReminder().add(reminder); > > > the above line of code throws the following exception > > com.google.gdata.util.InvalidEntryException: Bad Request > Illegal gd:reminder method or time specified: 16920 seconds > > > Is there anything wrong in the above code. My purpose is to send the > invitation mail to the attendees at the time I create the event. How > to do that? please help. > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
