问题描述
我在Outlook 2007中遇到问题。当发送带有文本/日历部分的多部分/备用电子邮件时,Outlook会识别日历事件,这是它的原因。
但是当添加text / plain部分时,Outlook只显示纯文本,日历部分缺失(但它出现在电子邮件的源代码中)。
I have problems with Outlook 2007. When sending a "multipart/alternative" email with a "text/calendar" part, Outlook recognizes the calendar event, that's how it has to be.But when adding a "text/plain" part, Outlook only displays the plain text, the calendar part is missing (but it's present in the source code of the email).
源代码如下:
[...]
Content-Type: multipart/alternative;
boundary="_=_swift_v4_138243630552664dd1bc83e_=_"
--_=_swift_v4_138243630552664dd1bc83e_=_
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
[...the plain message...]
--_=_swift_v4_138243630552664dd1bc83e_=_
Content-Type: text/calendar; charset=utf-8
Content-Transfer-Encoding: quoted-printable
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//GourmetPortal//NONSGML rr//DE
BEGIN:VEVENT
UID:res-Burkert
CREATED:20131030T113000Z
ORGANIZER;CN=3DSven Burkert:MAILTO:[...]
SUMMARY:[...]
DESCRIPTION:[...]
DTSTART:20131030T113000Z
END:VEVENT
END:VCALENDAR
--_=_swift_v4_138243630552664dd1bc83e_=_--
推荐答案
您缺少iTIP方法,内容类型:
You are missing the iTIP method, both in the content-type:
Content-Type: text/calendar; charset="utf-8"; method=REQUEST
并作为VCALENDAR属性:
and as a VCALENDAR property as well:
BEGIN:VCALENDAR
VERSION:2.0
METHOD:REQUEST
PRODID:-//GourmetPortal//NONSGML rr//DE
方法可能是PUBLISH或REQUEST(在这种情况下,您也会错过一些ATTENDEE属性)。
The method might be PUBLISH or REQUEST (in which case you also miss some ATTENDEE property).
然后,一些客户端忽略了multipart / alternative中的iMIP,并且只查看附件,因此您可能需要尝试以下结构:
Then, some clients are ignoring iMIP in multipart/alternative and are looking only as attachments so you may need to try the following structure:
multipart/mixed
multipart/alternative
text/plain
text/calendar;method=REQUEST
text/calendar (with a content-disposition:attachment)
本质上,您要添加附件两次。 iMIP邀请来自google / yahoo日历和闪电都有这样的结构。
Essentially, you are adding the attachment twice. iMIP invitation from google/yahoo calendar and lightning have such a structure.
这篇关于带有文本和日历的多部分电子邮件:Outlook无法识别ics的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!