iCalendar .ics accept/decline on iOS(iCalendar .ics 在 iOS 上接受/拒绝)
问题描述
我创建了一个发送 iCalendar 活动邀请的 php 脚本(基于 RFC 5545一个>).一切正常,但在 iPhone (iOS 4.2.1) 和 iPad (iOS 5.1) 上,我没有接受/拒绝事件的选项(显示为 mime-attachment.ics),只能将其添加到我的日历.在其他邮件客户端(outlook、thunderbird、gmail)中,这按预期工作.
I have created a php script that sends out iCalendar event invitations (based on RFC 5545). Everything works ok, but on iPhone (iOS 4.2.1) and iPad (iOS 5.1) I don't get an option to accept/decline the event (which appears as a mime-attachment.ics), only to add it to my calendar. In other mail clients (outlook, thunderbird, gmail) this works as expected.
iOS 的邮件客户端是否支持发送此类回复?如果是,有谁知道我应该指定什么来完成这项工作?
Does iOS' mail client support sending such responses? If yes, does anyone know what should I specify to make this work?
这是 ics 文件的示例内容:
Here's a sample content of the ics file:
BEGIN:VCALENDAR
PRODID:-//Some organization//some application//EN
VERSION:2.0
METHOD:REQUEST
BEGIN:VEVENT
UID:20120920T150350Z-70@http://localhost/www/
CREATED:20120920T150350Z
DTSTAMP:20120921T080800Z
DTSTART:20120921T080800Z
DTEND:20120922T060800Z
DESCRIPTION:Please attend this sample meeting
SUMMARY:Invitation to attend training
LOCATION:Earth
ATTENDEE;RSVP=TRUE:mailto:periklis@example.com
ORGANIZER;CN=periklis@example.com:mailto:periklis@example.com
LAST-MODIFIED:20120921T080800Z
PRIORITY:5
SEQUENCE:0
STATUS:CONFIRMED
TRANSP:TRANSPARENT
END:VEVENT
END:VCALENDAR
推荐答案
仔细阅读了RFC,下面是我使用和工作的:
After carefully reading the RFC, here's what I used and worked:
BEGIN:VCALENDAR
PRODID:-//Some organization//some application//EN
VERSION:2.0
METHOD:REQUEST
BEGIN:VEVENT
UID:20120925T072912Z-140@http://localhost/www/
CREATED:20120925T072912Z
DTSTAMP:20120922T090500Z
DTSTART:20120922T090500Z
DTEND:20120923T090500Z
DESCRIPTION:Please attend this sample meeting
SUMMARY:Invitation to attend training
LOCATION:Earth
ATTENDEE;RSVP=TRUE:mailto:periklis@example.com
ORGANIZER;CN=periklis@example.com:mailto:periklis@example.com
LAST-MODIFIED:20120922T090500Z
PRIORITY:5
SEQUENCE:0
STATUS:CONFIRMED
TRANSP:TRANSPARENT
END:VEVENT
END:VCALENDAR
还值得一提的是,上面的行必须用 分隔.所以我将每一行分配给一个数组成员,然后对数组进行内爆:
It's also worth mentioning that the above lines MUST be separated with . So I assigned each line to an array member and then imploded the array:
$message[]='BEGIN:VCALENDAR';
$message[]='PRODID:-//Some organization//some application//EN';
[...]
$message[]='END:VCALENDAR';
$message = implode("
", $message);
这篇关于iCalendar .ics 在 iOS 上接受/拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:iCalendar .ics 在 iOS 上接受/拒绝
基础教程推荐
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 如何替换eregi() 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
