ciao!ho problemi col mio script per l'invio mail.i dati vengono presi da un form:
Codice PHP:
 if (isset($_POST['a']))
$dest $_POST['a'];
else if(isset(
$_POST['cc']))
$dest $_POST['cc'];

$obj $_POST['obj'];
$msg $_POST['msg'];
$from $_POST['from'];
$data date('r');

$mail=<<<MAIL
--asefawsd121213
content-type:text/plain

{$msg}

--asefawsd121213--

MAIL;

$headers=<<<HD
from:{$from}
date: 
{$data}
content-type: multipart/mixed;
    boundary="asefawsd121213"
MIME-Version:1.0
x-priority:2

HD;



if (
mail ($dest,$obj,$mail,$headers))
echo 
"inviato";
else
echo 
"non inviato"
l'errore è:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

sono in locale