Dear Team,
I am using Aspose.Email v23.7 and i am stuck appending ICS to Office 365. I have checked it manually its working fine. I have checked latest version too but same issue. Plz find below my c# code.
Appointment calDoc = null;
MapiMessage calMapiMsg = null;
calDoc = Appointment.Load(strTempEventsIcs, new AppointmentLoadOptions() { IgnoreSmtpAddressCheck = true }); //added on 10-4-2019
Aspose.Email.MailMessage calMsg = new Aspose.Email.MailMessage();
calMsg.AddAlternateView(calDoc.RequestApointment());
calMapiMsg = MapiMessage.FromMailMessage(calMsg, MapiConversionOptions.UnicodeFormat);
MapiCalendar objMapiCalendar = (MapiCalendar)calMapiMsg.ToMapiMessageItem();
MemoryStream memoryStream = new MemoryStream();
objMapiCalendar.Save(memoryStream, AppointmentSaveFormat.Msg);
calMapiMsg = MapiMessage.FromStream(memoryStream);
try
{
Aspose.Email.MailMessage eml = calMapiMsg.ToMailMessage(new MailConversionOptions() { ConvertAsTnef = true });
try
{
eml.BodyEncoding = Encoding.UTF8; //added on 9-11-2018, for umlaut characters
eml.SubjectEncoding = Encoding.UTF8;
}
catch
{
}
string strMessageURI = this.Client.AppendMessage(exchangeFolderInfo.Uri, eml);
this.iActualEmailsSaved++;
}
catch (Exception e)
{
}
Attached is the ICS sample file.
CalendarRecurrence.7z (739 Bytes)
Kindly check.
XCoder