ECCO IL CODICE:

$mail = new PHPMailer();

$mail->SetFrom($email_utente, $nome_utente);

$mail->IsSMTP(); // enable SMTP
$mail->SMTPDebug = 0; // debugging: 1 = errors and messages, 2 = messages only
$mail->SMTPAuth = true; // authentication enabled
$mail->Host = $miohost;
$mail->Port = 25;
$mail->Username = $ud;
$mail->Password = $pass;


$mail->Subject = "$nome_utente: Novita!!!";

$html_body = '<html><body><p align=center><img src=http://www.sito.it/internal/cartella/'.$immagine_messaggio.'></p></body></html>';


$mail->MsgHTML($html_body);
$mail->Sender = ($email_utente);
$mail->AddAddress($destinatario);
if($mail->Send())
{
}
else
{
echo 'Errore: mail non inviato';
}