public void Send(string type, IDictionary <string, object> parameters)
        {
            var messageChannel = _messageChannelManager.GetMessageChannel(type, parameters);

            if (messageChannel == null)
            {
                Logger.Information("No channels where found to process a message of type {0}", type);
                return;
            }

            messageChannel.Process(parameters);
        }
        public IEnumerable <NotifyEntry> GetNotifications()
        {
            var registrationSettings = _CoeveryServices.WorkContext.CurrentSite.As <RegistrationSettingsPart>();

            if (registrationSettings != null &&
                (registrationSettings.UsersMustValidateEmail ||
                 registrationSettings.NotifyModeration ||
                 registrationSettings.EnableLostPassword) &&
                null == _messageManager.GetMessageChannel("Email", new Dictionary <string, object> {
                { "Body", "" },
                { "Subject", "Subject" },
                { "Recipients", "*****@*****.**" }
            }))
            {
                yield return(new NotifyEntry {
                    Message = T("Some Coevery.User settings require an Email channel to be enabled."), Type = NotifyType.Warning
                });
            }
        }