在 Outlook 2010 中打开 ICS 文件,并填充“收件人:”字段
当用户从 Intranet 站点单击房间时,我将启动一个对话框来打开 ICS 文件(这将随我的解决方案一起提供 - 一开始它将用日期、描述/位置等进行硬编码)-最终可能会从站点动态地执行此操作。然而,我想要开始工作的是将其填充到会议请求中的“收件人:”和房间电子邮件地址,然后用户可以添加需要参加会议的其他人员。下面是我的 ics 文件的代码,但它不起作用(“收件人”字段未填充地址)。如果我更改并放置 ORGANIZER:[email protected] - 它会添加此内容并我可以看到房间的所有预订等,但这并不能请允许我邀请其他联系人参加会议。
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
ATTENDEE;ROLE=REQ-PARTICIPANT;
:MAILTO:[email protected]
DTSTART:20110928T000000Z
DTEND:20111001T000000Z
SUMMARY:Your Meeting
LOCATION:Meeting Room
DESCRIPTION:Test
END:VEVENT
END:VCALENDAR
When a user click on a room from a intranet site I am going to lauch a dialog to open an ICS file (this will be shipped with my solution - at the start it will be hard coded with a date, Description/location etc) - eventually might do this dynamically from the site. What I want to get working however is to have it poulate the To: in the meeting request with the room email address, the user can then add other people that need to attend the meeting. Below is the code for my ics file however it is not working (the To field is not populated with the address). If i change and put ORGANIZER:[email protected] - it adds this and I can see all the bookings, etc for the room, however this does not allow me to invite other contacts to the meeting.
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
ATTENDEE;ROLE=REQ-PARTICIPANT;
:MAILTO:[email protected]
DTSTART:20110928T000000Z
DTEND:20111001T000000Z
SUMMARY:Your Meeting
LOCATION:Meeting Room
DESCRIPTION:Test
END:VEVENT
END:VCALENDAR
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上已经解决了这个问题。对于遇到类似情况的任何人 - 我去了 Outlook 2010 - 创建了一个约会,然后将其保存为 ics 文件。然后我打开 Outlook 使用 Notepad++ 保存的文件,以便查看语法。有了它,我对我的文件进行了以下调整,效果很好。 :)。
结束:V日历
Actually got this sorted. For anyone who comes across similar - I went to Outlook 2010 - created a appointment and then saved it as an ics file. I then opened the file Outlook had saved with Notepad++ so I could view the syntax. With it I made the adjuctment below to my file and it works fine. :).
END:VCALENDAR