如何在 Outlook 中将我的 ICS 文件作为会议电子邮件阅读
How to read my ICS file as a meeting email in Outlook
我找到了一种创建 *.ICS 文件的方法 here,我需要将其作为电子邮件发送。我面临的问题是 Outlook 2010 没有将其作为会议电子邮件阅读。相反,它会将其视为普通电子邮件。这是下面的代码:
System.Net.Mime.ContentType contype = new System.Net.Mime.ContentType("text/calendar");
contype.Parameters.Add("method", "REQUEST");
contype.Parameters.Add("name", "Meeting.ics");
AlternateView avCal = AlternateView.CreateAlternateViewFromString(str.ToString(), contype);
msg.AlternateViews.Add(avCal);
client.Send(msg);
我发现这个工作正常:
"Optionally, you could also attach the .ics file itself, so regular mail readers can offer the user something to click on. Outlook does not really require the attachment because it just reads the text/calendar part."
我找到了一种创建 *.ICS 文件的方法 here,我需要将其作为电子邮件发送。我面临的问题是 Outlook 2010 没有将其作为会议电子邮件阅读。相反,它会将其视为普通电子邮件。这是下面的代码:
System.Net.Mime.ContentType contype = new System.Net.Mime.ContentType("text/calendar");
contype.Parameters.Add("method", "REQUEST");
contype.Parameters.Add("name", "Meeting.ics");
AlternateView avCal = AlternateView.CreateAlternateViewFromString(str.ToString(), contype);
msg.AlternateViews.Add(avCal);
client.Send(msg);
我发现这个工作正常: "Optionally, you could also attach the .ics file itself, so regular mail readers can offer the user something to click on. Outlook does not really require the attachment because it just reads the text/calendar part."