Aspose.email.mail.appointment

Hi,

I have an application built using asp.net mvc , c# , where i have to send reminders to all my business users. i am using aspose.email.mail.appointment for this and to some extent able to send it as an appointment but not able to set start date and end date. Can anyone help me how i can do this? i have used all properties mentioned in the class (start date , start time zone, end date ,end time zone) but no help.

@yatishsingh,

It seems that you are using an old version of Aspose.Email. It is always recommended to use the latest version of the APIs as the latest version contains new features and bug fixes. Please try the following code snippet at your end and update us in case of any query or comments.

CODE:

        TimeZone localZone = TimeZone.CurrentTimeZone;
        TimeSpan ts = localZone.GetUtcOffset(DateTime.Now);
        DateTime StartDate = new DateTime(2017, 10, 14, 12, 0, 0);
        StartDate = StartDate.Add(ts);
        DateTime endByDate = new DateTime(2017, 10, 14, 12, 30, 0);
        endByDate = endByDate.Add(ts);

        Aspose.Email.Calendar.Appointment appointment = new Aspose.Email.Calendar.Appointment("Location", "Summary", "Description", StartDate, endByDate, "Organizer Email", "Attendees Email addresses");