su php.ini:
[mail function]
; For Win32 only.
SMTP = 172.20.15.12
smtp_port = 25
<?php
//ini_set("SMTP","172.20.15.12"); //mail.yoursite.com should be your local smtp
//ini_set("SMTP","smtp.tiscali.it"); //mail.yoursite.com should be your local smtp
//ini_set("smtp_port","80"); //25 should be your smtp port
ini_set("sendmail_from","pippo@pluto.it"); //info@yoursite.com should be your site email
$to = 'topolino@disney.it, paperino@disney.it';
$subject = 'Disney';
$message = 'Messaggio di prova';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: "Astronomer" <astronomer@tiscali.it> ' . "\r\n" .
'Cc:astronomer@tiscali.it' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
//'Reply-To: astronomer@tiscali.it' . "\r\n" .
print $headers;
mail($to, $subject, $message, $headers);
?>