si, si.. restituisce 1, adeso faccio così ;-)

Codice PHP:
if ($x->mail($to$oggetto$messaggio)) {
    echo 
"OK";
} else {
    echo 
$x->getError();