future lessons

This commit is contained in:
2025-12-23 09:39:59 +01:00
parent 67cc0742ff
commit b592be5831
9 changed files with 790 additions and 28 deletions
+2 -2
View File
@@ -5,9 +5,9 @@ use PHPMailer\PHPMailer\Exception;
use Dotenv\Dotenv;
// Carica le variabili di ambiente
require_once dirname(__DIR__, 2) . '/vendor/autoload.php'; // Assicurati che PHPMailer e Dotenv siano installati con Composer
require_once dirname(__DIR__, 3) . '/vendor/autoload.php'; // Assicurati che PHPMailer e Dotenv siano installati con Composer
$dotenv = Dotenv::createImmutable(dirname(__DIR__, 2)); // Se la cartella `class` è a 2 livelli sopra la root
$dotenv = Dotenv::createImmutable(dirname(__DIR__, 3)); // Se la cartella `class` è a 2 livelli sopra la root
$dotenv->load();
function sendEmail($to, $subject, $body, $attachments = [], $cc = [], $bcc = [])