diff --git a/test_email.php b/test_email.php new file mode 100644 index 0000000..8ce0fb9 --- /dev/null +++ b/test_email.php @@ -0,0 +1,130 @@ + + + + + +
+

Test Email Configurazione SMTP

+

✅ Congratulazioni! La configurazione SMTP funziona correttamente.

+

Hai ricevuto questa email di test da " . SITE_NAME . "

+

Ora puoi eliminare il file test_email.php dalla root del progetto.

+
+

+ Configurazione SMTP:
+ Host: " . SMTP_HOST . "
+ Port: " . SMTP_PORT . "
+ Username: " . SMTP_USERNAME . " +

+
+ + + "; + + if (send_email($test_email, $subject, $body)) { + $message = '
✅ Email inviata con successo a ' . htmlspecialchars($test_email) . '! Controlla la tua casella (anche spam).
'; + } else { + $message = '
❌ Errore durante l\'invio. Verifica le credenziali SMTP in config.php e controlla i log PHP.
'; + } + } else { + $message = '
Inserisci un indirizzo email valido
'; + } +} +?> + + + + + + Test Email SMTP + + + +
+
+
+

+ 📧 Test Email SMTP +

+ +

+ Verifica la configurazione Gmail SMTP +

+ + + +
+

Configurazione Attuale:

+
    +
  • SMTP Attivo:
  • +
  • Host:
  • +
  • Porta:
  • +
  • Username:
  • +
  • Password:
  • +
+
+ + +
+ ⚠️ Configurazione Incompleta!
+ Apri includes/config.php e configura: +
    +
  • Imposta USE_SMTP a true
  • +
  • Inserisci la tua email Gmail in SMTP_USERNAME
  • +
  • Genera e inserisci la Password Applicazione Gmail in SMTP_PASSWORD
  • +
+

+ + Genera Password App Gmail → + +

+
+ + +
+
+ + +
+ + +
+ +
+ ⚠️ IMPORTANTE: Elimina questo file (test_email.php) dopo il test! +
+ +
+ ← Torna alla Home +
+
+
+
+ +