We just released Aspose.Network for .NET v22.214.171.124.
Many new features and enhancements are included in this new version, like sending appointments in email messages. Now you can send an appointment request in email, update the appointment or cancel the appointment. Here is the sample code:
MailMessage msg = new MailMessage(); msg.From = "[firstname.lastname@example.org](mailto:email@example.com)"; //attendees for the event MailAddressCollection attendees = new MailAddressCollection(); attendees.Add(new MailAddress("[firstname.lastname@example.org]); attendees.Add(new MailAddress("[email@example.com]); attendees.Add(new MailAddress("[firstname.lastname@example.org]); msg.To = attendees; DateTime dtstart = new DateTime(2008, 12, 24, 14, 30, 0); //create calendar Appointment appoinment= new Appointment( "Room 112", "Product Release meeting", "Product release meeting", dtstart, dtstart.AddHours(1), msg.From\[0\], attendees); string uniqueId = "f6bd236b-a48b-4eb5-a9ec-2177a77bd2f4"; appoinment.UniqueId = uniqueId; msg.Subject = "Release Meeting"; //add the appointmentto mail message msg.AddAlternateView(appoinment.RequestAppointment(0));
//set the uniqueid of the appointment
string uniqueId = “f6bd236b-a48b-4eb5-a9ec-2177a77bd2f4”;
appoinment.UniqueId = uniqueId;
//send appointment with 1 as sequence id msg.AddAlternateView(appoinment.UpdateAppointment(1));
//set the uniqueid of the appointment string uniqueId = "f6bd236b-a48b-4eb5-a9ec-2177a77bd2f4"; appoinment.UniqueId = uniqueId; //send cancel appointment with 2 as the sequence id msg.AddAlternateView(appoinment.CancelAppointment(2));
Check out the download page:
: mailto:email@example.com)" : mailto:firstname.lastname@example.org)" : mailto:email@example.com)"