コード例 #1
0
        public void EnviarNotificacionInvestigadorProyectosNuevos(NotificationDraftLawViewModel oNotification)
        {
            NotificacionConfig oNotificacionConfig = new NotificacionConfig("notificacion.proyectos.nuevos");

            string        mensaje = ObtenerMensajeProyectosNuevos(oNotification, oNotificacionConfig.xslPath);
            List <string> images  = new List <string>();

            images.Add(ConfigurationManager.AppSettings["site.path"] + @"\Assets\img\logo-cael-arca.png");
            EmailHelper.SendMail(mensaje, oNotificacionConfig.From, oNotification.to, oNotificacionConfig.Cc, oNotificacionConfig.Bcc, oNotificacionConfig.Asunto, null, images.ToArray());
        }
コード例 #2
0
        public void EnviarNotificacionRecuperarCuenta(NotificationGeneralAccountViewModel oNotification)
        {
            NotificacionConfig oNotificacionConfig = new NotificacionConfig("notificacion.recuperar.cuenta");

            string        mensaje = ObtenerMensajeGeneralAccount(oNotification, oNotificacionConfig.xslPath);
            List <string> images  = new List <string>();

            images.Add(ConfigurationManager.AppSettings["site.path"] + @"\Assets\img\logo-cael-arca.png");
            EmailHelper.SendMail(mensaje, oNotificacionConfig.From, oNotification.to, oNotificacionConfig.Cc, oNotificacionConfig.Bcc, oNotificacionConfig.Asunto, null, images.ToArray());
        }
コード例 #3
0
        public void EnviarNotificacionMovil(NotificationConceptMovil oNotification, string key)  //"notificacion.recuperar.cuenta"
        {
            NotificacionConfig oNotificacionConfig = new NotificacionConfig(key);

            string mensaje = ObtenerMensajeMovil(oNotification, oNotificacionConfig.xslPath);

            List <string> images = new List <string>();

            images.Add(ConfigurationManager.AppSettings["site.path"] + @"\Assets\img\logo-cael-arca.png");
            EmailHelper.SendMail(mensaje, oNotificacionConfig.From, oNotificacionConfig.To, oNotificacionConfig.Cc, oNotificacionConfig.Bcc, oNotificacionConfig.Asunto, null, images.ToArray());
        }