HI,
I am creating appointments in Outlook with versiin 4.8.0. I attach the attendees to the appointmnet, but I would like to send an emaial only to a specific atteendee, not all
Is it possible?
// Set up Aspose Netwrok client - NO SMTP AUTHENTICATION
Aspose.Network.Mail.MailAddressCollection attendees = new Aspose.Network.Mail.MailAddressCollection();
//this is the main attendant
attendees.Add(new Aspose.Network.Mail.MailAddress(email, firstName + " " + lastName));
//this adds a Contact email, who will be in the appointment, but I would not want the system to send the email to,
//because the email doesn't exist in the system
attendees.Add(new Aspose.Network.Mail.MailAddress(defaultEmail, contFirstName + " " + contLastName));
Aspose.Network.Mail.SmtpClient client = new Aspose.Network.Mail.SmtpClient(exchange, 25);
client.AuthenticationMethod = Aspose.Network.Mail.SmtpAuthentication.None;
Aspose.Network.Mail.MailMessage msg = new Aspose.Network.Mail.MailMessage();
// Set key Appointment fields
// Subject is set on message here
msg.From = schedulerEmail;
msg.To = attendees;
msg.Subject = subject;
msg.Body = body.ToString();
Aspose.Network.Mail.Appointment appointment = new Aspose.Network.Mail.Appointment(location, finalStartDate, finalEndDate, schedulerEmail, attendees);
appointment.UniqueId = appointmentRequestId.ToString();
msg.AddAlternateView(appointment.RequestApointment(method));
client.Send(msg);
Can I make the system to not attempt to send the email to my COntact?
thanks
Daniela