Ruby on rails Outlook与rails的预约

Ruby on rails Outlook与rails的预约,ruby-on-rails,ruby,outlook,Ruby On Rails,Ruby,Outlook,我正在尝试将ruby(rails)的约会发送到Microsoft Outlook 2013 当我在附件中发送ICS文件时,用户必须手动打开该文件 正在寻找发送正常会议请求的方法(用户无需打开ICS即可接受)。 我阅读了教程: 但它不适合我,用户收到以下电子邮件: -- Date: Tue, 27 May 2014 23:17:23 +0300 Message-ID: <5384f2d3b125b_90c30357c28514@Eric-PC.mail> Mime-Version: 1

我正在尝试将ruby(rails)的约会发送到Microsoft Outlook 2013
当我在附件中发送ICS文件时,用户必须手动打开该文件
正在寻找发送正常会议请求的方法(用户无需打开ICS即可接受)。

我阅读了教程: 但它不适合我,用户收到以下电子邮件:

--
Date: Tue, 27 May 2014 23:17:23 +0300
Message-ID: <5384f2d3b125b_90c30357c28514@Eric-PC.mail>
Mime-Version: 1.0
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: base64
Content-Disposition: inline

QSBSdWJ5IGNyZWF0ZWQgYXBwb2ludG1lbnQ=

--
Date: Tue, 27 May 2014 23:17:23 +0300
Message-ID: <5384f2d3b1e13_90c30357c2861e@Eric-PC.mail>
Mime-Version: 1.0
Content-Type: text/calendar;
 charset=UTF-8;
 method=request;
 name=subject.ics
Content-Transfer-Encoding: quoted-printable
content-class: urn:content-classes:calendarmessage

BEGIN:VCALENDAR
VERSION:2.0
PRODID:icalendar-ruby
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20140527T201722Z
UID:abb15328-a6af-4c95-8e04-acdb9d6584e2
DTSTART:20140623T083000
DTEND:20140624T083000
CLASS:PRIVATE
DESCRIPTION:Have a long lunch meeting and decide nothing...
SUMMARY:Meeting with the man.
END:VEVENT
END:VCALENDAR

有什么想法吗

您不应将ICS文件作为附件发送。您的整个邮件的内容类型必须为text/calendar,并且应该只有一个部分-text/calendar:

Date: Tue, 27 May 2014 23:17:23 +0300
Message-ID: <5384f2d3b125b_90c30357c28514@Eric-PC.mail>
Mime-Version: 1.0
Content-Type: text/calendar;
 charset=UTF-8;
 method=request;
 name=subject.ics
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
content-class: urn:content-classes:calendarmessage

BEGIN:VCALENDAR
VERSION:2.0
PRODID:icalendar-ruby
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20140527T201722Z
UID:abb15328-a6af-4c95-8e04-acdb9d6584e2
DTSTART:20140623T083000
DTEND:20140624T083000
CLASS:PRIVATE
DESCRIPTION:Have a long lunch meeting and decide nothing...
SUMMARY:Meeting with the man.
END:VEVENT
END:VCALENDAR
日期:2014年5月27日星期二23:17:23+0300
消息ID:
Mime版本:1.0
内容类型:文本/日历;
字符集=UTF-8;
方法=请求;
name=subject.ics
内容配置:内联
内容传输编码:引用可打印
内容类:urn:内容类:calendarmessage
开始:VCALENDAR
版本:2.0
PRODID:icalendar ruby
CALSCALE:格里高利
开始:VEVENT
DTSTAMP:20140527T201722Z
UID:abb15328-a6af-4c95-8e04-acdb9d6584e2
DTSTART:20140623T083000
数据终端:20140624T083000
类别:私人
描述:开一个长时间的午餐会,什么都不做决定。。。
小结:与该男子会面。
完:维文特
完:VCALENDAR

在哪里定义VBCALENDAR?我已经编辑了问题并添加了代码,应该是文本/日历-请参见上面的示例消息。
Date: Tue, 27 May 2014 23:17:23 +0300
Message-ID: <5384f2d3b125b_90c30357c28514@Eric-PC.mail>
Mime-Version: 1.0
Content-Type: text/calendar;
 charset=UTF-8;
 method=request;
 name=subject.ics
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
content-class: urn:content-classes:calendarmessage

BEGIN:VCALENDAR
VERSION:2.0
PRODID:icalendar-ruby
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20140527T201722Z
UID:abb15328-a6af-4c95-8e04-acdb9d6584e2
DTSTART:20140623T083000
DTEND:20140624T083000
CLASS:PRIVATE
DESCRIPTION:Have a long lunch meeting and decide nothing...
SUMMARY:Meeting with the man.
END:VEVENT
END:VCALENDAR