There are many different types of calendar events, distinguished by the method:
PUBLISH: | when you just want to inform people of an event |
---|---|
REQUEST: | when you require a response |
example:
info = dict(
location='My location',
dtstart=datetime(2008, 6, 2, 15, 30),
dtend=datetime(2008, 6, 2, 24, 00),
organizer=('adentella@thundersystems.it', 'Sandro Dentella')
)
msg = EmailMessageCalendar(title, summary, from_email, recipient_list)
event = msg.get_event(info)
msg.set_attendee(event, email2, full_name) # Required for ``REQUEST``
msg.attach_calendar(event, 'PUBLISH')
msg.send()
An EmailMessage capable of creating a correct Ics attachment
Initialize a single email message (which can be sent to multiple recipients).
All strings used to create the message can be unicode strings (or UTF-8 bytestrings). The SafeMIMEText class will handle any necessary encoding conversions.
Return a basic event to be added to a calendar event. uuid and dtstamp are added by default if not present. attendee and `organizer can be eather email or tuple (email, common_name) and will be correctly adde using set_organizer() and meth:set_attendee.
Parameters: |
|
---|