diff --git a/ci4/app/Controllers/Test.php b/ci4/app/Controllers/Test.php
index f7ccf76f..09357adb 100755
--- a/ci4/app/Controllers/Test.php
+++ b/ci4/app/Controllers/Test.php
@@ -30,10 +30,17 @@ class Test extends BaseController
}
- private function index()
+ public function index()
{
- $modelCL = new CatalogoLibroModel();
+
+ $this->emailService = service('emailService');
+
+ $a= $this->emailService->send('prueba', 'Esto es una prueba', ['imnavajas@coit.es','imnavajas@gmail.com']);
+
+ echo var_dump($a);
+
+ /*$modelCL = new CatalogoLibroModel();
$modelISK = new IdentificadorIskModel();
// Obtener todos los registros sin isk
@@ -46,7 +53,7 @@ class Test extends BaseController
$modelCL->update($registro->id, ['isk' => $isk]);
echo "[" . $i++ . "]Asignado ISK {$isk} a ID {$registro->id}
";
- }
+ }*/
}
diff --git a/ci4/app/Services/EmailService.php b/ci4/app/Services/EmailService.php
index 95cfd5b0..5b6f7f99 100755
--- a/ci4/app/Services/EmailService.php
+++ b/ci4/app/Services/EmailService.php
@@ -13,7 +13,7 @@ class EmailService
// Si no estamos en producción, forzar el destinatario a uno fijo
if ($skEnv !== 'production') {
- $recipient = 'imnavajas@coit.es'; // <-- Cambia por el correo de pruebas
+ $recipient = env('MAIL_DEV_RECIPIENT', 'imnavajas@coit.es'); // fallback opcional
}
$settings_model = model('App\Models\Configuracion\ConfigVariableModel');
diff --git a/ci4/app/Views/themes/vuexy/main/defaultlayout.php b/ci4/app/Views/themes/vuexy/main/defaultlayout.php
index f646eb00..2664577c 100755
--- a/ci4/app/Views/themes/vuexy/main/defaultlayout.php
+++ b/ci4/app/Views/themes/vuexy/main/defaultlayout.php
@@ -5,19 +5,14 @@ $picture = "/assets/img/default-user.png";
?>
-