We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Evaluating Aspose.Email by opening ICS file using .NET

I am evaluating your library and I would like to

  1. Open an ics file via Aspose.
  2. Update the description with an html description. The html description is supplied externally.
  3. Save the ics file.

The code I am using is the following

    public void AposeIcsUpdateWithHTMLDescription()
        var appointment = Appointment.Load($@"{AppDomain.CurrentDomain.SetupInformation.ApplicationBase}\New Meeting with a simple text body.ics");
        appointment.Description = System.IO.File.ReadAllText($@"{ AppDomain.CurrentDomain.SetupInformation.ApplicationBase}\bodywithinlineimage.htm");
        appointment.IsDescriptionHtml = true;
        appointment.Save($@"{AppDomain.CurrentDomain.SetupInformation.ApplicationBase}\New Meeting with an html body.ics", Aspose.Email.Calendar.AppointmentSaveFormat.Ics);

IcsHtmlTest.zip (7.4 KB)

The rendered html is not correct

image.png (32.0 KB)

Same kind of applies when mapiCalendar is used

        var mapiCalendar = new MapiCalendar("location", "summary", "description", DateTime.UtcNow, DateTime.UtcNow);
        mapiCalendar.SetBodyContent(System.IO.File.ReadAllText($@"{ AppDomain.CurrentDomain.SetupInformation.ApplicationBase}\bodywithinlineimage.htm"), BodyContentType.Html);
        mapiCalendar.Save($@"{AppDomain.CurrentDomain.SetupInformation.ApplicationBase}\out.msg", Aspose.Email.Calendar.AppointmentSaveFormat.Ics);


I have worked with the issue shared by you and an issue with ID EMAILNET-39286 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

The issues you have found earlier (filed as EMAILNET-39286) have been fixed in this update.