gmail 中不存在 ics 附件
我已经在我的网站(Ruby on Rails)中实现了日历,并且还成功生成了 .ics 文件。我想将此文件作为电子邮件的附件发送。
我已将 mime 设置为 text/calendar
我还将 content_type 设置为 multipart/alternative
附件已在除 gmail 之外的所有主要电子邮件客户端上的电子邮件中成功发送
如何使 .ics 附件出现在电子邮件中。以前有人遇到过这样的问题吗?我查看了各种谷歌帮助论坛,很多人都遇到过这个问题,但没有找到具体的解决方案。
I have implemented a calendar in my website (Ruby on Rails) and i have also successfully generated an .ics file. I want to send this file as an attachment in an email.
I have set the mime as text/calendar
I also set the content_type as multipart/alternative
The attachment is sent successfully in the email on all major email clients except gmail
How to make the .ics attachment appear in the email. has anyone faced this kind of a problem before. I checked in various google help forums and many have faced this issue, but no concrete solution has been found.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Gmail 中,点击“更多”向下箭头。选项之一是“显示原始内容”。选择那个。
当窗口打开时,向下滚动。您应该看到 VCalendar 区域。 Gmail 会忽略它。
在此区域中,查找以“组织者;”开头的行。如果您被列为组织者,则 gmail 会忽略 ics 文件。这是一个“功能”,
我们为自己构建了一个网页,我们将文本复制到该网页中,然后它会删除该行并将这些内容重新通过电子邮件发送给我们。然后就可以正常工作了。 (只需多做一点工作,您就可以设置一个电子邮件拦截器,在其中将电子邮件转发到您有解析器的某个地方,该解析器可以抓取 VCalendar,删除组织者,然后通过电子邮件将其发回给您。
我们要求 Google 放置一个功能请求来改变这一点,但这不太可能发生
。
In Gmail, click the "more" down arrow. One of the options is "Show original". Select that.
When the window opens, scroll down. You should see the VCalendar area. Gmail is ignoring it.
In this area, look for the line that starts as "Organizer;" If you are listed as the organizer, then gmail ignores the ics file. This is a "feature"
We built a web page for ourselves that we copy that text into and it strips that line out and re-emails the ics to us. Then it works fine. (with just a little more work, you could set up an email intercept wherein you forward that email to someplace where you have a parser that grabs the VCalendar, strips out the organizer, and emails it back to you.
We asked Google to put a feature request in to change this, but it's unlikely to happen.
Good Luck.