I am using Aspose.Email Trail version to send reminders for particular task to different outlook recipients. I have created an appointment , created calendar and also set reminders, saved it to a path,but how can i able to send a calendar having reminders to different outlook recipients…I am using .net 4.0.
You may load the ICS calendar to appointment and create a message as shown here:
Appointment app = Appointment.Load(@"Meeting.ics"); AlternateView view = app.RequestApointment(); MailMessage mail = new MailMessage("email@example.com", "firstname.lastname@example.org", "Test Subject", "Test Body"); mail.To.Add(new MailAddress("email@example.com")); mail.To.Add(new MailAddress("firstname.lastname@example.org")); mail.To.Add(new MailAddress("email@example.com")); mail.To.Add(new MailAddress("firstname.lastname@example.org")); mail.AddAlternateView(view); SmtpClient smtpClient = new SmtpClient("smtp.gmail.com", 587, "username", "password"); smtpClient.SecurityOptions = SecurityOptions.SSLExplicit; smtpClient.Send(mail);
If it does not fulfill the requirement, please explain the requirement in detail along with the sample code written to create calendar.
Thank you.It works.
But when i set description of appointment class to html content-type, the message i receive does not render html content.
So,How to set description with html content-type in Appointment class?
This issue is already logged under Id:EMAILNET-38917.