简体   繁体   English

PHP Outlook 2007“不支持的日历附件.ics”错误

[英]PHP outlook 2007 “not supported calendar attachment.ics” error

I am using http://kigkonsult.se/iCalcreator/ for creating ics files and sending via email. 我正在使用http://kigkonsult.se/iCalcreator/创建ics文件并通过电子邮件发送。

When I send this file to Outlook.com or Gmail or Outlook 2011 (Mac) I see that the file appears correctly and I can respond to the invite. 当我将此文件发送到Outlook.com或Gmail或Outlook 2011(Mac)时,我看到该文件显示正确,并且可以回复邀请。 I see (Accept / May be / Deny) buttons in the action bar. 我在操作栏中看到了(接受/可能是/拒绝)按钮。

Sometimes my users reported that the file doesn't appear correctly and it appears as "not supported calendar attachment.ics". 有时我的用户报告该文件显示不正确,并显示为“不支持的日历附件.ics”。

Many folks on the internet faced this problem but this is regards with "Recurring Date" syntax of the ics files. 互联网上的许多人都遇到了此问题,但这与ics文件的“重复日期”语法有关。 In my ICS file I don't have any recurring event definition. 在我的ICS文件中,我没有任何重复的事件定义。 See below 见下文

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//AdviseStream Inc//NONSGML kigkonsult.se iCalcreator 2.18//
CALSCALE:GREGORIAN
METHOD:REQUEST
X-WR-TIMEZONE:America/New_York
BEGIN:VEVENT
UID:20140305T153312EST-1562xbSf8a@AdviseStream Inc
DTSTAMP:20140305T203312Z
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=John Doe:MAILTO:user1@domain1.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Jane Smith:MAILTO:user2@domain1.com
DESCRIPTION:
DTSTART:20140414T160000
DTEND:20140414T170000
LOCATION:John Doe's Office
ORGANIZER:MAILTO:user2@domain1.com
SEQUENCE:0
SUMMARY:Jane Smith : CL Interview : John Doe
END:VEVENT
END:VCALENDAR

I am not able to find the solution for this. 我无法找到解决方案。 Any help or pointers are appreciated. 任何帮助或指针表示赞赏。

This problem is now rectified. 现在,此问题已得到纠正。

Everyone knows that Outlook 2007 and 2010 had issue with RRULE configuration from different email clients. 每个人都知道Outlook 2007和2010在来自不同电子邮件客户端的RRULE配置方面存在问题。 eg Lotus Notes. 例如Lotus Notes。 I was not having that problem hence, I overlooked an obvious error in my application. 我没有那个问题,因此,我忽略了应用程序中的明显错误。

Our iCal files are generated on a NFS share which is mounted on various application servers. 我们的iCal文件是在安装在各种应用程序服务器上的NFS共享上生成的。 One of the application servers used to generate the iCal file and notify email sending queue to dispatch the email with attachment. 一台用于生成iCal文件并通知电子邮件发送队列以分发带有附件的电子邮件的应用程序服务器。

If email worker picks up the item before the iCal file is propagated to all shared mount-points, email worker used to send a 0 byte attachment of iCal file. 如果电子邮件工作者在将iCal文件传播到所有共享的安装点之前拿起了邮件,则电子邮件工作者通常会发送0字节的iCal文件附件。

Funny enough, only Outlook used to cite this as a "not supported calendar attachment.ics". 有趣的是,只有Outlook曾经将此作为“不支持的日历附件.ics”来引用。 Other email clients used to show email without attachment file. 其他电子邮件客户端曾经显示不带附件文件的电子邮件。 This was easier for me to figure out as the attachment never got delivered to the email clients. 对于我来说,这很容易确定,因为附件从未交付给电子邮件客户端。

Only Outlook confused me because of its error message. 由于它的错误消息,只有Outlook使我感到困惑。

So if you're facing this issue, please check if your attachments are going fine then investigate if you're falling in the category of RRULE. 因此,如果您遇到此问题,请检查附件是否运行良好,然后调查您是否属于RRULE类别。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM