When sending an email with an appointment attached via SMTP to an Exchange / Outlook recipient (as per the Sending Email Messages with SMTP - Sending Meeting Requests via Email example), is it possible to default the Free / Busy status of the appointment to Free?
If not is there a way to achieve this with the API?
Thank you for contacting Aspose support team and we are sorry for the delayed response.
I have analyzed this requirement, and am afraid to share that I could not find any such option to set the Free/Busy status to Free. Could you please spare us little time to investigate the requirement and share our findings?
Your patience and understanding is appreciated in this regard.
I’d like the appointment that is sent to attendees to show as free, not busy.
Is it possible to obtain the iCalendar text from the Appointment?
This may then make it possible to add X-MICROSOFT-CDO-BUSYSTATUS extension to it and attach it to an email with CreateAlternateViewFromString?
We have analyzed your requirements and found that it is not supported by Aspose.Email at present. An enhancement ticket with Id: NETWORKNET-34280 is created for providing facility to set Free/Busy state before sending the appointment.
I have also tested the scenario by creating appointment using CreateAlternateViewFromString() but found that it is not functioning as expected. Another ticket with id: NETWORKNET-34281 is created in our issue tracking system to investigate this issue.
Following sample code can be used to read the iCalendar text from the appointment however it may not fulfil the purpose of setting the Free/Busy state (as logged in ticket NETWORKNET-34281).
Appointment app = Appointment.Load(@“D:\Aspose\Test Subject2.ics”); MemoryStream stream = new System.IO.MemoryStream(); app.Save(stream, AppointmentSaveFormat.Ics); stream.Position = 0; var sr = new StreamReader(stream); string myStr = sr.ReadToEnd(); AlternateView alterView = AlternateView.CreateAlternateViewFromString(myStr);
Please feel free to write us back if you have any other query related to Aspose.Email.
I would also like to share that issue logged under id: NETWORKNET-34281 is resolved and now you may send appointments which will be received properly on the receiving end. Following is a sample code which demonstrates this feature: