如何发送带有日历请求的电子邮件(内容类型:文本/日历)
我尝试将icalendar代码嵌入到通过indy发送的内容类型为文本/日历的电子邮件中,但当我添加为附件时,它只是挂在电子邮件的编码上,它只是作为附件到达,并且不会提示其他日历请求即可。有没有人有如何通过 indy 执行日历请求的示例代码?
I have tried to embed the icalendar code in a email to be sent via indy with a content type text/calendar but it just hangs on the encoding of the email when I add as an attachment it just arrives as an attachment and does not prompt as other calendar request do. Has any one got example code of how to do calendar requests via indy?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是 RRUZ 示例的替代方案:
Here is an alternative to RRUZ's example:
@David,如果您将属性设置为
ContentType:='text/calendar'
,电子邮件客户端会将附件识别为日历请求,请参阅此链接以获取 iCalendar 格式规范请参阅此示例代码(在 Delphi 2010 中测试)
@David, the email client will recognize as a calendar request the attachment if you set the property to
ContentType:='text/calendar'
, see this link for the iCalendar format Specificationsee this sample code (tested en Delphi 2010)