public bool SendContactMessage(string name, string email, string message) { var contactForm = EngineContext.Current.Resolve <ContactFormSettings>(); var noReply = _emailAccountService.GetNoReply(); var contact = _emailAccountService.GetContact(); var from = new MailAddress(email, name); var to = new MailAddress(contact.Email, contactForm.RecipientName); var mailMessage = new MailMessage(from, to) { Subject = contactForm.Subject, Body = message, IsBodyHtml = false }; return(SendEmail(mailMessage, noReply)); }