public void SendEmail(PointSumaryModel model, string gift) { bool sendSuccess = false; //ViewBag.qqq = EmailManager.BuildPartnerInfoHtmlBody(model); EmailManager em = new EmailManager(); EmailContents ec = new EmailContents(model.Name, Globals.Settings.ContactForm.MailTo, model.Email, "Send a reward gift", EmailManager.BuildSendGiftBody(model, gift)); em.Send(ec); // send to foodready.net if (em.IsSent == false) { sendSuccess = false; } else { sendSuccess = true; } ec = new EmailContents("Foodready.net", model.Email, Globals.Settings.ContactForm.MailTo, "You get a gift!", EmailManager.BuildGiftToCustomerBody(model, gift)); em.Send(ec); // send to Customer if (em.IsSent == false) { sendSuccess = false; } else { sendSuccess = true; } ViewBag.SendingSuccess = sendSuccess; }