Ejemplo n.º 1
0
        private EmailConfiguration GetEmailConfigurationModel(ItemModel model)
        {
            EmailConfiguration configuration = new EmailConfiguration();

            configuration.Body           = model.GetFieldValue(Models.ProductContsants.BodyField).ToString();
            configuration.Sender         = model.GetFieldValue(Models.ProductContsants.SenderField).ToString();
            configuration.Recipients     = model.GetFieldValue(Models.ProductContsants.RecipientsField).ToString();
            configuration.Subject        = model.GetFieldValue(Models.ProductContsants.SubjectField).ToString();
            configuration.Host           = model.GetFieldValue(Models.ProductContsants.HostField).ToString();
            configuration.Port           = model.GetFieldValue(Models.ProductContsants.PortField).ToString();
            configuration.Username       = model.GetFieldValue(Models.ProductContsants.UsernameField).ToString();
            configuration.Password       = model.GetFieldValue(Models.ProductContsants.PasswordField).ToString();
            configuration.AttachmentName = model.GetFieldValue(Models.ProductContsants.AttachmentField).ToString();
            return(configuration);
        }