在iCalendar文件(.ics)中设置orgnizer属性

时间:2018-09-18 15:00:24

标签: php calendar icalendar

我们正在使用php库ZContent/icalendar来为事件生成ics文件,到目前为止,它可以正常工作。

尽管如此,当使用带有Google日历的文件时,事件显示如下:

google agenda entry

如何为“未知组织者*”设置值? (奎)(谁)

在查看at the specifications时,有一个ORGANIZER属性,但它似乎并未链接到事件,而是链接到VTODOVJOURNAL对象。

还是希望收到电子邮件?不仅是名字?

1 个答案:

答案 0 :(得分:1)

VEVENT的实际规范位于https://tools.ietf.org/html/rfc5545#section-3.6.1,并且确实包含了Organizer属性,该属性本身具有mailto:uri作为值,并且通常还具有CN参数。参见https://tools.ietf.org/html/rfc5545#section-3.8.4.3

给出一个基本示例:

ORGANIZER;CN=John Smith:mailto:jsmith@example.com
相关问题