Outlook attendees
Andrej-Marsic opened this issue · comments
Andrej Marsic commented
Hi there,
I'm trying to create an .ics
file that I could then import to Outlook on a Mac.
I'm able to get the event down, but when I add attendees, I can see them in the .ics file, but Outlook ignores them.
Any suggestions?
event = Event()
event.name = "Meeting with client"
event.begin = datetime(2023, 3, 15, 10, 0, 0)
event.end = event.begin + timedelta(hours=1)
event.location = "Office"
event.add_attendee(Attendee("random_email@email.com"))
cal = Calendar()
cal.events.add(event)
with open("meeting.ics", "w") as f:
f.write(str(cal))
Niko Fink commented
You could try generating an Event as you want it in Outlook, exporting it to ics and parsing that with ics.py. Then programmatically reproducing this result yields something that Outlook should correctly parse.