questo è la classe che uso :

<?php

require("class.phpmailer.php");

$email = "indirizzo@xxxxxx.xxx";
$mail = new PHPMailer();

$mail->IsSMTP();
$mail->Host = "smtp.xxxxxxxx.xx";
$mail->SMTPAuth = true;
$mail->Username = "noreply@xxxxxxxx.xx";
$mail->Password = "xxxxxxxx";
$mail->From = "noreply@xxxxxxxx.xx";
$mail->FromName = "XXXXXXXX";
$mail->AddAddress($email);
$mail->AddReplyTo("noreply@xxxxxxxx.xx");

$mail->WordWrap = 50;
$mail->IsHTML(true);

$mail->Subject = "Prova Oggetto !";

$stringa = "<html><head></head><body>ciao</body></html>";

$mail->Body = $stringa;

if($mail->Send()){
echo "Abbiamo spedito l'invito all'email: $email";
}
else {
echo "Abbiamo riscontrato dei problemi nell'invio dell'email.";
}
?>


dalla classe phpmailer leggo quanto segue :

if($this->Sender == "")
$result .= $this->HeaderLine("Return-Path", trim($this->From));
else
$result .= $this->HeaderLine("Return-Path", trim($this->Sender));

in fase di creazione degli header del messaggio...

boh non so proprio cosa fare