future lessons
This commit is contained in:
@@ -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 = [])
|
||||
|
||||
Reference in New Issue
Block a user