是否可以发送类似“”的链接?将其添加到日历”在电子邮件中使用 C# 获取 ics 文件
是否可以使用 C# 在 ics 文件的电子邮件中发送类似“将此添加到日历”的链接?
我可以将 ICS 文件作为附件发送,但是否可以作为电子邮件中的超链接发送?
Is it possible to send a link like " Add this to calender" in email for ics file using c#?
I can send ICS file as attachment but is it possible to send as a hyper link in email?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 HTML 电子邮件中,您可以像在网页上一样包含链接。 C# 不关心电子邮件的内容。
如果您询问如何设置将生成 ICS 文件的链接,一种选择是使用 .ashx 文件,您可以从中将必要的 ICS 详细信息写入输出流。另外,不要忘记设置 mime 类型(文本/日历)。
In HTML email you can include links like you would on a web page. C# doesn't care about the content of your email.
If you're asking how to set up a link that will generate an ICS file, one option would be to use a .ashx file from which you can write the necessary ICS details to the output stream. Also, don't forget to set the mime type (text/calendar).
当您发送包含 mime 类型(文本/日历)和正确的 ics 格式的电子邮件至
gmail 或 hotmail,收件人将收到邀请,
当您单击“是”时,它将导入您的谷歌日历或实时日历
when you send a email including the mime type(text/calendar) and the correct ics format to
gmail or hotmail,the receiver will get a invitation,
when you click yes, it would import into your google calendar or live calendar