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

Free Support Forum - aspose.com

Appointment not added to the own calender

Hello,
when i create an appointment (as .msg) and open it and click on Send. I get an note:
The reminder reminder name” is not displayed because the element is in a folder that does not support reminders. Do you agree?

if I hit yes the Appoint is send correct but it does not appear in the Calender. Is there a Solution to this problem, that the Appointment is automaticly added to the Senders Calender?
Here is the Code so far:

// Create attendees of the meeting
Aspose.Email.Mail.MailAddressCollection attendees = new Aspose.Email.Mail.MailAddressCollection();
foreach (string candidates in eMail)
{
Aspose.Email.Mail.MailAddress address = new Aspose.Email.Mail.MailAddress(candidates, candidates, true);
attendees.Add(address);
}
// Set up appointment
Appointment app = new Appointment(
location, // location of meeting
startDate, // start date
endDate, // end date
new MailAddress(senderAddress), // organizer
attendees); // attendees

AppointmentReminder displayReminder = new AppointmentReminder();
ReminderDuration dur = new ReminderDuration(new TimeSpan(0, -30, 0));
displayReminder.Trigger = new ReminderTrigger(dur, ReminderRelated.Start);
displayReminder.Repeat = 2;
displayReminder.Duration = new ReminderDuration(new TimeSpan(0, 15, 0));
displayReminder.Action = ReminderAction.Display;
displayReminder.Description = mailSubject;
app.Reminders.Add(displayReminder);

Aspose.Email.Mail.Attachment attachment;
attachment = new Aspose.Email.Mail.Attachment(mem, “some.pdf”);
app.Method = AppointmentMethodType.Publish;

// Set up message that needs to be sent
MailMessage msg = new MailMessage();
msg.From = senderAddress;
msg.Subject = mailSubject;
msg.Body = mailBodyPlain;
// Add meeting request to the message
msg.AddAlternateView(app.RequestApointment());

System.IO.Stream ms = new System.IO.MemoryStream();
msg.Save(ms, MailMessageSaveType.OutlookMessageFormatUnicode);

Greetzs Martin

Hi Martin,


Thank you for contacting Aspose support team.

I have searched the information and found this article which explains the behavior of Outlook w.r.t. reminders. You may please review it for further information on this issue.

Regarding saving the appointment in sender’s calendar, this is Outlook feature and can be achieved by pressing “Copy to My Calendar” button on the menu. Aspose cannot save it in the senders calendar automatically.

Please feel free to write us back if you have any other query in this regard.