/// <summary> /// Send conformation email to customer <paramref name="email"/> /// </summary> /// <param name="email"></param> private void SendConfirmationEmail(string email) { EmailFactory factory = new EmailFactory(); MailAddress to = factory.GetMailAddress(email); MailAddress from = factory.GetMailAddress("fromAddress"); SmtpClient client = factory.GetSmtpClient(); MailMessage message = factory.GetMailMessage(to, from); message.Body = "Thank oyu for booking at us"; message.Subject = "Thanks for your purchase!"; EmailSender sender = factory.GetEmailSender(message, client, message.To.First(), message.From); sender.SendEmail(); }