private void SendEmailsAndTextsForMessageRecipients(string host, List <messagerecipients> listMessageRecipients) { foreach (var recipient in listMessageRecipients) { var adisplaycontactinformation = _customDataAccess.RetrieveContactInformationForSystemAccount(recipient.AccountID, recipient.AccountTypeID); if (adisplaycontactinformation.EnableEmailMessages == true) { var msg = BuildInternalMessageDeliveredEmail(host); if (!String.IsNullOrEmpty(adisplaycontactinformation.EmailAddress)) { SendThroughProduction(adisplaycontactinformation.EmailAddress, "Youth In View Internal Message", msg); } } if (adisplaycontactinformation.EnableSmsMessages == true) { var msg = BuildInternalMessageDeliveredSms(host); if (!String.IsNullOrEmpty(adisplaycontactinformation.MobilePhoneNumber)) { SendSMSThroughProduction(adisplaycontactinformation.MobilePhoneNumber, msg); } } } }