Tag: alternateview

通过C#中的MailMessage取消Outlook会议请求

我正在使用C#中的ASP.NET MVC 1框架创建一个应用程序,我有用户注册事件。 注册后,我创建了一个Outlook会议请求 public string BuildMeetingRequest(DateTime start, DateTime end, string attendees, string organizer, string subject, string description, string UID, string location) { System.Text.StringBuilder sw = new System.Text.StringBuilder(); sw.AppendLine(“BEGIN:VCALENDAR”); sw.AppendLine(“VERSION:2.0”); sw.AppendLine(“METHOD:REQUEST”); sw.AppendLine(“BEGIN:VEVENT”); sw.AppendLine(attendees); sw.AppendLine(“CLASS:PUBLIC”); sw.AppendLine(string.Format(“CREATED:{0:yyyyMMddTHHmmssZ}”, DateTime.UtcNow)); sw.AppendLine(“DESCRIPTION:” + description); sw.AppendLine(string.Format(“DTEND:{0:yyyyMMddTHHmmssZ}”, end)); sw.AppendLine(string.Format(“DTSTAMP:{0:yyyyMMddTHHmmssZ}”, DateTime.UtcNow)); sw.AppendLine(string.Format(“DTSTART:{0:yyyyMMddTHHmmssZ}”, start)); sw.AppendLine(“ORGANIZER;CN=\”NAME\”:mailto:” + organizer); sw.AppendLine(“SEQUENCE:0”); sw.AppendLine(“UID:” + UID); sw.AppendLine(“LOCATION:” + location); […]