Hello,
I´m testing your EMail at the moment and have some questions.
First of all i have the problem with the Appointment Location. The text of the Location can consist special german characters like ö ä ü etc. When i save the the appointment and open it in Outlook the special characters are displayed with a “?”. The same error Occurs in the msg Subject (the body encoding is fine).
is there any Solution or workaround for this ?
Kind Regards
Martin
Hi Martin,
MailAddressCollection coll = new MailAddressCollection();
Appointment testAEApp = new Appointment(“Test Location ö ä ü”, new DateTime(2014, 5, 30, 9, 0, 0), new DateTime(2014, 5, 30, 9, 30, 0), null, coll);
testAEApp.Description = “Test Body ö ä ü”;
testAEApp.Summary = “Test Subject ö ä ü”;
testAEApp.Method = AppointmentMethodType.Publish;
testAEApp.Save(@“D:\Aspose\SavedAppointment1.ics”, AppointmentSaveFormat.Ics);
Hi,
thanks for the fast answer. Your Sample Code works. But i need a msg file.
If you add the following lines to your sample project, you will see the encoding doesn`t work anymore.:
MailMessage msg = new MailMessage();
msg.From = "test@tester.com";
msg.Subject = “Test Body ö ä ü”;
msg.Body = “Test Subject ö ä ü”;
msg.AddAlternateView(testAEApp.RequestApointment());
msg.Save(@“D:\Aspose\SavedAppointment1.msg”, MailMessageSaveType.OutlookMessageFormat);
Hi Martin,
Thanks that worked for me!