Here this code is sending two emails. Could you please help to make it as one email and send both the contents on one email.
Code:
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
var assembly = Assembly.GetExecutingAssembly();
byte[] bytes = xyz.Properties.Resources.Template;
TinyUser tu = new TinyUser("r7929");
EmailMessage newMessage = new EmailMessage(service);
newMessage.SetExtendedProperty(binaryProperties, bytes);
tu.EMail = newMessage.ToRecipients.Add("niad@outlook.com").ToString();
Absence ab = ServiceLookup.APServerProxy.GetAbsence(842);
Absences abs = new Absences();
abs.Add(ab);
UserAbsences ua = new UserAbsences(tu, abs);
UsersAbsences usa = new UsersAbsences();
usa.Add(ua);
Console.WriteLine("Absence of (842");
AccreditorUsersAbsences aua = new AccreditorUsersAbsences(tu, usa);
TinyUser tua = new TinyUser("r7929");
tua.EMail = newMessage.ToRecipients.Add("niad@outlook.com").ToString();
aua.Accreditor = tua;
MailManager.Instance.SendMailToAccreditor(aua);
newMessage.Subject = "Request for vacation";
newMessage.Body = new MessageBody("Email Body");
newMessage.Send();