fix send mail with python script

This commit is contained in:
Francesco Picone
2025-12-09 17:35:40 +01:00
parent b79b31df69
commit 568a02251c
5 changed files with 296 additions and 13 deletions

View File

@@ -74,7 +74,9 @@ define('MAIL_FROM_NAME', 'Pilates Studio');
define('USE_SMTP', true); // Imposta false per usare mail() PHP di base
// Impostazioni SMTP - Gmail
// NOTA: Le email vengono inviate tramite script Python (send_email.py) per maggiore affidabilità
// Per Gmail: usa password applicazione da https://myaccount.google.com/apppasswords
// Requisito: Python 3.6+ installato sul server (testa con: python3 --version)
define('SMTP_HOST', 'smtp.gmail.com');
define('SMTP_PORT', 587);
define('SMTP_USERNAME', 'pyco.networking@gmail.com'); // Inserisci la tua email Gmail