问题一:outlook日历显示 not supported calendar message.ics
是因为日历格式不正确,不满足outlook要求
检查以下几项:
1,METHOD:REQUEST
2,STATUS:CANCELLED
3,检查各时间参数是否有值
DTSTART:yyyyMMddTHHmmss
DTEND:yyyyMMddTHHmmss
DTSTAMP:yyyyMMddTHHmmss
CREATED:yyyyMMddTHHmmss
问题二:日期格式显示不对
是因为时区原因
检查是否加了时区
BEGIN:VTIMEZONE
TZID:China Standard Time
BEGIN:STANDARD
DTSTART:16010101T000000
TZOFFSETFROM:+0800
TZOFFSETTO:+0800
END:STANDARD
END:VTIMEZONE
模板:亲测试有效,outlook版本2019,foxmail,腾讯企业邮箱都可用
发送会议邮件
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VTIMEZONE
TZID:China Standard Time
BEGIN:STANDARD
DTSTART:16010101T000000
TZOFFSETFROM:+0800
TZOFFSETTO:+0800
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART:20210910T163615
DTEND:20210910T163615
DTSTAMP:20210910T163615
UID:c53a376f-0913-4229-b4b7-dd72147ae049
CREATED:20210910T163615
DESCRIPTION:这是描述
LOCATION:
PRIORITY:5
SEQUENCE:0
STATUS:CONFIRMED
TRANSP:OPAQUE
SUMMARY:这是主题
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:FREE
END:VEVENT
END:VCALENDAR
取消会议的UID需要和创建的UID保持一致,才能取消
取消会议邮件
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
METHOD:REQUEST
BEGIN:VTIMEZONE
TZID:China Standard Time
BEGIN:STANDARD
DTSTART:16010101T000000
TZOFFSETFROM:+0800
TZOFFSETTO:+0800
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T000000
TZOFFSETFROM:+0800
TZOFFSETTO:+0800
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTART:20210910T163615
DTEND:20210910T163615
DTSTAMP:20210910T163615
UID:c53a376f-0913-4229-b4b7-dd72147ae049
CREATED:20210910T163615
LOCATION:
CLASS:PUBLIC
PRIORITY:1
SEQUENCE:1
STATUS:CANCELLED
TRANSP:TRANSPARENT
END:VEVENT
END:VCALENDAR
icalendar官网,下面链接可以用来校验邮件格式是否正确
https://icalendar.org/validator.html