iCal没有在两个帐户之一的Gmail中解析

时间:2013-03-08 01:29:44

标签: asp.net email email-integration icalendar

我试图从我的应用程序生成包含iCal事件的电子邮件,我正在两个Google帐户中测试该电子邮件:一个来自gmail,另一个来自Google应用。

当我在gmail([email1] @ gmail.com)中收到活动时,事件会像这样呈现,没有问题:

enter image description here

但是当我在我的谷歌应用程序帐户([email2] @ [域名] .com)中获取它时,它没有呈现,我不知道它是否被解释但它只是不显示我该事件,它只显示一个带附件的简单电子邮件(invite.ics)

这是正在生成的电子邮件:

  

Delivered-To:[email2] @ [domain] .com收到:10.205.80.15 with   SMTP id zs15csp100752bkb;           星期四,2013年3月7日17:12:25 -0800(太平洋标准时间)X-Received:by 10.236.126.202,SMTP id为b50mr351212yhi.25.1362705145168;           星期四,2013年3月7日17:12:25 -0800(太平洋标准时间)回程路径:收到:来自mail-gh0-f181.google.com   (mail-gh0-f181.google.com [209.85.160.181])           by mx.google.com with ESMTPS id f43si3539773yhk.290.2013.03.07.17.12.24           (version = TLSv1 cipher = ECDHE-RSA-RC4-SHA bits = 128/128);           星期四,2013年3月7日17:12:25 -0800(太平洋标准时间)收到SPF:中立(google.com:209.85.160.181既不被允许也不被拒绝   为app @ [domain] .com域名猜测记录   客户IP = 209.85.160.181;身份验证 - 结果:mx.google.com;          spf =中立(对于@ [domain] .com域名的最佳猜测记录,既不允许也不拒绝google.com:209.85.160.181)   smtp.mail = app @ [domain] .com收到:mail-gh0-f181.google.com   使用SMTP id y8so186664ghb.26           for< [email2] @ [domain] .com&gt ;;星期四,2013年3月7日17:12:24 -0800(太平洋标准时间)X-Google-DKIM-Signature:v = 1; A = RSA-SHA256; C =轻松/放松;           d = google.com; S = 20120113;           H = X-接收:消息ID:MIME版本:从:至:日期:受试者            :内容类型:X-GM-消息状态;           BH = WkTwznIOK5D42bFC8nOzJjgv3 + K9EWlBJWKv1ejbN9w =;           B = n8BuYosOIOzxX28UkvX71UjVR9gFK00 + 9vixzoImOEvRKSvCimOPf1nvcpZR3AMShv            RL / 0ahNmVoDJ0ypjTiqA / fRZazf2M65SWJih / MGJuYmhzpyTpf371Z8NI65sAAGMvB0w            KIaKl3kybyuS1TxysalZ / ZssN1vf2BT9T5Y5vVR + uAzBeAmtxZap733ZEn + Z + UvHQmOL            twu64kvR / 6TSWLFZgrtkGdKC8Gcet4CGeXQd / qKg0ZjpFPNXmuDXeqIz6Ftouuu7fFhd            ms30c9l6zaexmpbFCCiZdtuwIfMKFjPuMnqtT6KcucDWmTTgu8LbBqNqdV5icFkrrCM2            LnTQ == X-Received:10.236.138.162,SMTP id为a22mr309438yhj.80.1362705144570;           2013年3月7日星期四17:12:24 -0800(太平洋标准时间)回程路径:收到:来自escobar5-pc([181.133.180.140])           by mx.google.com with ESMTPS id w2sm5267588yhh.7.2013.03.07.17.12.22           (version = TLSv1 cipher = RC4-SHA bits = 128/128);           2013年3月7日星期四17:12:23 -0800(太平洋标准时间)消息ID:< 51393af7.027cec0a.0f2d.ffffa713@mx.google.com> MIME版本:1.0   来自:" app"致:"用户"   < [email2] @ [domain] .com>,[email1] @ gmail.com日期:星期四,3月7日   2013 17:12:23 -0800(太平洋标准时间)主题:邀请:测试9内容类型:   多部分/替代;   边界= - boundary_0_9e5fb21c-1a19-477c-a576-04176397fb67   X-GM-消息状态:   ALoCoQmdferSoIzk / zUGmI9SEnioj6H76AOGmK / HVLGAaL29QjhGXVj8Z9VuAewe0N38zdOEVvTH

     

---- boundary_0_9e5fb21c-1a19-477c-a576-04176397fb67 Content-Type:text / plain; charset = UTF-8 Content-Transfer-Encoding:base64

     

TWVldGluZzogVGVzdCA5DQpPcmdhbml6ZXI6IGpzZXNjb2JhckBiaW9hbnl3aGVyZS5j   b20NClN0YXJ0IHRpbWU6IFRodXJzZGF5LCBBcHJpbCA0LCAyMDEzIDE6MDA6MDAgQU0N   CkVuZCB0aW1lOiBUaHVyc2RheSwgQXByaWwgNCwgMjAxMyAyOjAwOjAwIEFNDQoNCkF0   dGVuZGVlczogDQoJLWpzZXNjb2JhckBiaW9hbnl3aGVyZS5jb20NCgktanNlc2NvYmFy   NUBnbWFpbC5jb20NCg0KRGVzY3JpcHRpb246IHNkZmRzZmRzZnMNCkxvY2F0aW9uOiBC   aW9tZWV0aW5ncw0K   ---- boundary_0_9e5fb21c-1a19-477c-a576-04176397fb67 Content-Type:text / html; charset = UTF-8 Content-Transfer-Encoding:base64

     

PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgU3RyaWN0   Ly9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXN0cmlj   dC5kdGQiPg0KPGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwi   Pg0KPGhlYWQ + DQo8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9   InRleHQvaHRtbDsgY2hhcnNldD11dGYtOCIgLz4NCjx0aXRsZT5JbnZpdGF0aW9uOiBU   ZXN0IDk8L3RpdGxlPg0KPC9oZWFkPg0KPGJvZHk + DQo8cD48c3Ryb25nPk1lZXRpbmc6   PC9zdHJvbmc + IFRlc3QgOTwvcD4NCjxwPjxzdHJvbmc + T3JnYW5pemVyOjwvc3Ryb25n   PiBqc2VzY29iYXJAYmlvYW55d2hlcmUuY29tPC9wPg0KPHA + PHN0cm9uZz5TdGFydCB0   aW1lOjwvc3Ryb25nPiBUaHVyc2RheSwgQXByaWwgNCwgMjAxMyAxOjAwOjAwIEFNPC9w   Pg0KPHA + PHN0cm9uZz5FbmQgdGltZTo8L3N0cm9uZz4gVGh1cnNkYXksIEFwcmlsIDQs   IDIwMTMgMjowMDowMCBBTTwvcD4NCjxici8 + DQo8cD48c3Ryb25nPkF0dGVuZGVlczo8   L3N0cm9uZz4gPC9wPjx1bD4NCjxsaT5qc2VzY29iYXJAYmlvYW55d2hlcmUuY29tPC9s   aT4NCjxsaT5qc2VzY29iYXI1QGdtYWlsLmNvbTwvbGk + DQo8L3VsPjxici8 + DQo8cD48   c3Ryb25nPkRlc2NyaXB0aW9uOjwvc3Ryb25nPiBzZGZkc2Zkc2ZzPC9wPg0KPHA + PHN0   cm9uZz5Mb2NhdGlvbjo8L3N0cm9uZz4gQmlvbWVldGluZ3M8L3A + DQo8L2JvZHk + DQo8   L2h0bWw + DQo =   ---- boundary_0_9e5fb21c-1a19-477c-a576-04176397fb67内容类型:文字/日历;方法= REQUEST;字符集= UTF-8   内容传输编码:7位

     

BEGIN:VCALENDAR PRODID: - // Google Inc // Google Calendar 70.9054 // EN   版本:2.0 CALSCALE:GREGORIAN METHOD:请求开始:VEVENT   DTSTART:20130404T010000Z DTEND:20130404T020000Z   DTSTAMP:20130308T011216Z ORGANIZER; mailto:[Email2] @ [domain] .com   UID:event_36 @ [域] .COM   ATTENDEE; CUTYPE =个人; ROLE = REQ-参与者; PARTSTAT =需要-ACTION; RSVP = TRUE; X-NUM-客人= 0:的mailto:[EMAIL2] @ [域] .COM   ATTENDEE; CUTYPE =个人; ROLE = REQ-参与者; PARTSTAT =需要-ACTION; RSVP = TRUE; X-NUM-客人= 0:的mailto:[EMAIL1] @ gmail.com   创建时间:20130308T011154Z描述:sdfdsfdsfs   最后修改:20130308T011154Z位置:某处SEQUENCE:0   状态:已确认摘要:测试9移位:OPAQUE END:VEVENT END:VCALENDAR

     

---- boundary_0_9e5fb21c-1a19-477c-a576-04176397fb67 -

2 个答案:

答案 0 :(得分:0)

那么,您是否在第二个帐户中正确显示任何邀请(例如来自第一个帐户或来自MSFT Outlook的邀请)?

上面的消息看起来很好,但可能想尝试以下MIME结构。

content-type:multipart/mixed
      content-type:multipart/alternative
          essentially the 3 mime parts that you already have above
      content-type:text/calendar
      Content-Disposition: attachment; filename="invite.ics"
          the ics invitation (again)

答案 1 :(得分:0)

我更改了METHOD:请求方法:在文本中发布,现在它显示了两个帐户中的事件,它不会自动添加到谷歌日历中,但至少它显示在gmail消息中