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.
You can refer to the following resources:
- Microsoft Learn offers a detailed guide on why reminders in Outlook may not appear, covering potential causes and solutions, such as ensuring that the reminder display option is enabled and not managed by Group Policy. You can find this information here.
- Microsoft Q&A discusses issues related to Outlook reminders not showing for meetings, especially when the reminders are not set by the meeting organizer. It also provides steps to manually fix the reminders through calendar export/import. This discussion can be found here.
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.