是否可以发送类似“”的链接?将其添加到日历”在电子邮件中使用 C# 获取 ics 文件

发布于 2024-11-24 22:24:34 字数 94 浏览 6 评论 0原文

是否可以使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

薄凉少年不暖心 2024-12-01 22:24:34

在 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).

一口甜 2024-12-01 22:24:34

当您发送包含 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文