Пример #1
0
    public static string GetNotificacion(this HttpServerUtilityBase server, EnumNotificacionEmail notificacion, string titulo = null)
    {
        var plantilla = server.GetNotificacionPlantilla();
        var path      = server.MapPath(Path.Combine(SettingsProvider.EmailNotificaciones, notificacion.ToDescription()));
        var html      = File.ReadAllText(path, Encoding.UTF8);

        html = plantilla.Replace("@Header@", titulo ?? string.Empty)
               .Replace("@Body@", html);

        return(html);
    }