'Setting X-ALT-DESC using Aspose.Email

I use Aspose.Email to generate ICAL items from users' calendars in our organization. The body of the event object is set as follows

mapiEvent.SetBodyContent(@event.Body.Content, BodyContentType.Html);

@event is the event object that I receive from Graph API calls.

However, the resulting ICAL file does not contain the X-ALT-DESC header and the description is rendered as text due to this. Any idea on how I can set this header using Aspose.Email.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source