Salve a tutti,
ho creato una semplicissima pagina di test, con il seguente codice:
Mi restituisce sempre "error".Codice PHP:<?php
$to = "example@domain.ext";
$subject = "This is the subject";
$message = "This is the message";
echo mail($to, $subject, $message) ? "ok" : "error";
?>
La cosa strana è che, lasciando il campo $to vuoto:
mi restituisce "ok".Codice PHP:<?php
$to = "";
$subject = "This is the subject";
$message = "This is the message";
echo mail($to, $subject, $message) ? "ok" : "error";
?>
Qualcuno ha mai avuto un simile problema prima?
Grazie a tutti!

LinkBack URL
About LinkBacks
