Booking systems, webinar tools and clinics all need to put an event into a customer's calendar. The standard format is iCalendar, usually delivered as an .ics file or as a text/calendar part in the email. Done correctly, Gmail, Outlook and Apple Mail show the event with accept and decline buttons, update it when details change and remove it on cancellation. Done carelessly, the invite arrives as an unexplained attachment, duplicates itself on every change, shows the wrong time or is flagged as suspicious. This guide explains the iCalendar essentials, the difference between a simple attachment and a true invitation, the structure of the message, how updates and cancellations work through UID and SEQUENCE, how to handle time zones, which authentication and deliverability points matter and how to test the result in the main clients.
Two kinds of calendar email
| Kind | What it is | Recipient experience | Use for |
|---|---|---|---|
| Add-to-calendar attachment | An .ics file without a scheduling method, or a link to one | Opens in a calendar app and the user saves it | Webinars, newsletters, public events |
| Scheduling invitation | iCalendar with METHOD:REQUEST, ORGANIZER and ATTENDEE | Mail client shows the event with Accept, Decline and Tentative; replies go back to the organizer | Appointments and meetings with RSVP |
| Update | Same UID with a higher SEQUENCE | The existing entry changes | Time or location changes |
| Cancellation | METHOD:CANCEL with the same UID | The entry is removed or marked cancelled | Cancelled bookings |
A minimal invitation
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Example Co//Booking 1.0//EN
METHOD:REQUEST
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20250912T043000Z
DTSTART:20250920T093000Z
DTEND:20250920T100000Z
SEQUENCE:0
SUMMARY:Onboarding call
LOCATION:https://meet.example.com/abc
ORGANIZER;CN=Example Co:mailto:[email protected]
ATTENDEE;CN=Asha;RSVP=TRUE:mailto:[email protected]
STATUS:CONFIRMED
END:VEVENT
END:VCALENDARKey properties: UID identifies the event for its lifetime, DTSTAMP is when the object was created, SEQUENCE counts revisions, and ORGANIZER is the address that receives replies. Line endings in iCalendar are CRLF, and lines longer than 75 octets must be folded. Libraries for your language handle these rules; do not assemble the file with string concatenation if you can avoid it.
Message structure
Mail clients recognise an invitation when the calendar data is a MIME part of type text/calendar with a matching method parameter, usually inside multipart/alternative beside the text and HTML parts. Many senders add the same file as an attachment so that clients that ignore inline calendar parts can still open it:
Content-Type: multipart/mixed; boundary="m1"
--m1
Content-Type: multipart/alternative; boundary="a1"
--a1
Content-Type: text/plain; charset=UTF-8
...
--a1
Content-Type: text/html; charset=UTF-8
...
--a1
Content-Type: text/calendar; charset=UTF-8; method=REQUEST
...ICS data...
--a1--
--m1
Content-Type: application/ics; name="invite.ics"
Content-Disposition: attachment; filename="invite.ics"
...ICS data...
--m1--Keep the text and HTML parts meaningful, with the date, time zone, location and a link, so the email works even where the calendar part is ignored. See plain-text alternatives and MIME structure.
Updates and cancellations
- Never change the UID for the same booking. A new UID creates a duplicate entry.
- Increase SEQUENCE each time you change time, location or attendees. Clients ignore an update whose sequence is not higher.
- Send METHOD:CANCEL with the same UID and a higher sequence to remove an event. Setting STATUS:CANCELLED helps some clients.
- Keep ORGANIZER stable. Changing the organizer address breaks the link to the original event.
- Store UID and sequence in your booking database so later emails can use them.
Time zones
The most frequent complaint about invitations is a wrong time. Use one of these safe approaches: send times in UTC with the Z suffix, as in the example, or use a TZID that is defined with a VTIMEZONE block. Do not send floating local times without a zone, because each client interprets them in its own zone. Show the time in the email body in the recipient's time zone, and name the zone. For recurring events across daylight-saving changes, prefer TZID with a VTIMEZONE definition so that the local time stays constant.
Authentication and deliverability
- Send from an authenticated domain with SPF, DKIM and DMARC. Calendar spam is a known abuse route, and providers watch it. See authenticate your domain.
- Use a From address that matches your brand, and keep the ORGANIZER address monitored, since RSVP replies go there. See Reply-To and no-reply addresses.
- Send invitations only to people who have booked or registered. Unsolicited invitations are reported as spam and some clients show warnings. Unknown senders may have invitations hidden by default.
- Keep descriptions and locations clean: no hidden links, no shortened URLs. See link shorteners.
- Treat calendar messages as transactional and keep them on a separate stream if you also send marketing. See separate streams.
Common failures
| Symptom | Likely cause | Fix |
|---|---|---|
| Invite arrives as an attachment only | Missing or wrong method parameter, or no text/calendar part | Add the inline part with method=REQUEST |
| No Accept or Decline buttons | No ORGANIZER or ATTENDEE, or METHOD missing | Include them with proper mailto values |
| Duplicate events after a change | New UID was generated | Reuse the booking UID |
| Change is ignored | SEQUENCE not increased | Increment SEQUENCE |
| Wrong time | Floating time or wrong TZID | Use UTC or a defined time zone |
| Garbled characters in title | Missing charset or folding errors | Use UTF-8 and a library for folding. See UTF-8 in email |
| Invite sent to spam | Authentication or reputation issues | Check headers and the authentication checker |
Recurring events
Recurring appointments add an RRULE property, such as weekly on Tuesdays for ten occurrences, and exceptions are handled with EXDATE or with separate override components that use RECURRENCE-ID. Keep the first version simple: send one invitation per occurrence unless your product genuinely needs a series. If you do send a series, test changes to a single occurrence, to all future occurrences and to the whole series, because clients interpret edits differently. Always give the full date and time of the next occurrence in the text of the email, so that recipients are not left to decode the rule themselves.
Add-to-calendar links
For public events where you do not need RSVP, links work well. Offer an .ics download plus links that open a pre-filled event in Google Calendar and Outlook on the web. Links avoid attachments, which some filters treat with caution, and they work from the web page and from email. Always include the date, time and zone in text as well.
Privacy and attendee data
An invitation contains personal data: the attendee address, the event title and often a location or video link. Avoid putting sensitive details into the title or description, because calendar entries are visible to assistants, shared calendars and sometimes to other attendees. Do not list all attendees when each recipient should only see their own name; send individual invitations instead. Use unique meeting links where possible, and do not reuse a single link for every customer. Retain invitation records only as long as you need them. These habits reduce the chance of accidental disclosure and are easier to put in place at the start than to add later.
Testing
- Send to Gmail, Outlook (desktop and web) and Apple Mail accounts and look at how the event appears.
- Accept, decline, then update and cancel, and check that the same entry changes each time.
- Test across a daylight-saving boundary and across zones.
- Inspect the raw message for the method parameter and the calendar part. See reading headers.
- Use the delivery logs to confirm acceptance. See tracing messages.
A calendar invitation is a small protocol exchange wrapped in an email. Respect UID and SEQUENCE, state the time zone, authenticate the sender and keep a readable message around the data, and your invitations will behave the same in every calendar.
Send booking and event mail from your app Reliable delivery for invitations and confirmations.
References and further reading
Frequently asked questions
What is the difference between an ICS attachment and an invitation?
An invitation has METHOD:REQUEST with an organizer and attendee, so clients show RSVP buttons. A plain attachment only adds an event.
How do I update an event I already sent?
Reuse the same UID and increase SEQUENCE, then send a new REQUEST.
How do I cancel an event?
Send METHOD:CANCEL with the same UID and a higher SEQUENCE.
Why is the time wrong in some calendars?
The event used a floating local time or an undefined zone. Send UTC or a defined TZID.
Do calendar emails need SPF, DKIM and DMARC?
Yes. Unauthenticated invitations are often filtered because calendar spam is common.