public MailObject WriteToMailObject(MailObject message) { var contactSettings = Engine.Settings.Contact; message.PreHeader = NotificationTitle.IsSet() ? NotificationTitle.ReplaceSiteVariables() : contactSettings.Title.ReplaceSiteVariables(); message.Subject = NotificationSubject.IsSet() ? NotificationSubject.ReplaceSiteVariables() : contactSettings.Subject.ReplaceSiteVariables(); message.AddParagraph(NotificationMessage.IsSet() ? NotificationMessage.ReplaceSiteVariables() : contactSettings.Message.ReplaceSiteVariables()); message.AddParagraph("Name: <strong>" + Name + "</strong>"); message.AddParagraph("Email: <strong>" + Email + "</strong>"); message.AddParagraph("Phone: <strong>" + PhoneNumber + "</strong>"); message.AddParagraph("Subject: <strong>" + Subject + "</strong>"); message.AddParagraph("Enquiry:"); message.AddParagraph("<strong>" + Enquiry + "</strong>"); return(message); }