iCalendar API

Hi,

I’m
looking to purchase but what I want I’m not sure is possible. We are a
University that uses Microsoft Exchange and I would like to send an email to
internal folks that has a list of upcoming events. Each event would have
a HTML button that if clicked an event it is added to their calendar. I’m
not looking for a download of the iCal file that they have to open and click
and save but a more programmatic approach. Is this possible?

Thanks

Hi William,

Thank you for contacting Aspose support team.

Appointment requests can be sent where user at receiving end can accept/reject it along with the option to add the appointment to the calendar. However, I am afraid that no option is available where html button is there to add events to calendar by clicking it. You may please review following sample code and see if it fulfills your requirements.


// Create instance of IEWSClient class by giving credentials
IEWSClient client = EWSClient.GetEWSClient("https://outlook.office365.com/ews/exchange.asmx", "testUser", "pwd", "domain");

// Create the meeting request
Appointment app = new Appointment("meeting request", DateTime.Now.AddHours(1), DateTime.Now.AddHours(1.5), "administrator@test.com", "bob@test.com");
app.Summary = "meeting request summary";
app.Description = "description";

RecurrencePattern pattern = new Aspose.Email.Calendar.Recurrences.DailyRecurrencePattern(DateTime.Now.AddDays(5));
app.Recurrence = pattern;

// Create the message and set the meeting request
MailMessage msg = new MailMessage();
msg.From = "administrator@test.com";
msg.To = "bob@test.com";
msg.IsBodyHtml = true;
msg.HtmlBody = "
HTML Heading
Email Message detail
";
msg.Subject = "meeting request";
msg.AddAlternateView(app.RequestApointment(0));


// send the appointment
client.Send(msg);
Console.WriteLine("Appointment request sent");