vba 使用 PHP 将 Outlook 日历邀请作为电子邮件或 ical 发送
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5437232/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Send Outlook Calendar Invite as email nor ical using PHP
提问by osiloke
I am in a situation where i would need recipients with Outlook/or Equivalent(blackberry etc) to receive calendar events in Outlook Calendar event format, not an ical attachement.
我的情况是,我需要 Outlook/或等效(黑莓等)的收件人以 Outlook 日历事件格式接收日历事件,而不是一个 ical 附件。
This is to enable me use outlook calendar specific headers (Anyone knows what these header commands are?) like cancel, modify etc. I figured that i am just missing the correct MIME header string which Outlook needs to interpret the email as an Outlook calendar.
这是为了让我能够使用 Outlook 日历特定的标头(有人知道这些标头命令是什么吗?),例如取消、修改等。我想我只是缺少 Outlook 需要将电子邮件解释为 Outlook 日历的正确 MIME 标头字符串。
I would really appreciate any help on this. All my clients use Outlook based mail softwares (over a 1000 of them).
我真的很感激这方面的任何帮助。我所有的客户都使用基于 Outlook 的邮件软件(超过 1000 个)。
Thanks
谢谢
回答by SQLMason
Sorry that I didn't get back to you. This may not be the exact solution that you were looking for, but it could work.
很抱歉我没有回复你。这可能不是您正在寻找的确切解决方案,但它可以工作。
Here's a howto that shows to send a calendar request. It looks like the content type "text/calendar
" and the header shold be "content-disposition
", "attachment; filename=<file>
"
这是显示发送日历请求的方法。它看起来像内容类型“ text/calendar
”,标题应该是“ content-disposition
”,“ attachment; filename=<file>
”
You could generate an ICS and send that out via email or downloadable link on your site. Here's an example of an ICS file:
您可以生成 ICS 并通过电子邮件或您网站上的可下载链接将其发送出去。以下是 ICS 文件的示例:
BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
BEGIN:VTIMEZONE
TZID:Pacific Time (US & Canada)
BEGIN:STANDARD
DTSTART:20061105T020000
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=11
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20070311T020000
RRULE:FREQ=YEARLY;BYDAY=2SU;BYMONTH=3
TZOFFSETFROM:-0800
TZOFFSETTO:-0700
TZNAME:Daylight Savings Time
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID="Pacific Time (US & Canada)":20110405T120000
DTEND;TZID="Pacific Time (US & Canada)":20110405T130000
LOCATION;ENCODING=QUOTED-PRINTABLE:Location of the event
UID:100000000034201184
DTSTAMP:20110328T124055Z
DESCRIPTION:1. Click this link to join the Webinar:\n\n https://www2.gotomeeting.com/join/000000000/000000000\n\n\n2. Choose one of the following audio options:\n\n TO USE YOUR COMPUTER'S AUDIO:\n When the Webinar begins, you will be connected to audio using your computer's microphone and speakers (VoIP). A headset is recommended.\n\n\n
SUMMARY;ENCODING=QUOTED-PRINTABLE:Subject of the event
END:VEVENT
END:VCALENDAR
回答by Jbird
I was looking through the source of a calendar invitation I received and I noticed this header
我正在查看收到的日历邀请的来源,并注意到了这个标题
Content-Class: urn:content-classes:calendarmessage
I'm using Apple Mail but I wonder if there is some consistency accross email clients with the use of "calendarmessage". Just thought is was worth mentioning.
我正在使用 Apple Mail,但我想知道使用“日历消息”在电子邮件客户端之间是否存在一些一致性。只是想想还是值得一提的。