im使用nodemailer
发送由名为ical-toolkit的程序包生成的字符串,它可以正确显示日历事件,并在gmail中相应地显示时区。但在Outlook中,它表示不支持日历格式。我不确定我做错了什么。可能有一个标准,使Outlook与gmail读取日历的方式有所不同吗?这是生成的ics文件字符串:
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
X-WR-CALNAME:CRM Web Activities
METHOD:REQUEST
PRODID:node-ical-toolkit
X-WR-TIMEZONE:Asia/Phnom_Penh
BEGIN:VTIMEZONE
TZID:Asia/Phnom_Penh
END:VTIMEZONE
BEGIN:VEVENT
UID:3a208ff2
DTSTAMP;TZID=Asia/Phnom_Penh:20190925T081047
DTSTART;TZID=Asia/Phnom_Penh:20190926T150000
DTEND;TZID=Asia/Phnom_Penh:20190926T150000
SUMMARY:New note.
SEQUENCE:0
DESCRIPTION:do something
ORGANIZER;CN="The Almighty":mailto:miike.vaan@gmail.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;CN=Lead Manager:MAILTO:mike.van@clik.asia
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;CN=Mike:MAILTO:sanada.koei.kh@gmail.com
END:VEVENT
END:VCALENDAR