PHPMailer erroring arrière avec Appel à la méthode non PHPMailer::SetFrom()

Foin que j'utilise PHPMailer pour envoyer un simple e-mails, cependant la fonction SetFrom() ne semble pas fonctionner, même si le code que j'utilise est directement à partir de phpmails docs (http://phpmailer.worxware.com/index.php?pg=examplebmail)

Ici mon erreur

Call to undefined method PHPMailer::SetFrom()

et mon script

require_once('inc/phpmailer/class.phpmailer.php');
$mail = new PHPMailer(); //defaults to using php "mail()"
$body = $message;
$mail->SetFrom('[email protected]', 'tell a friend');
$mail->AddAddress($to_email, $to);
$mail->Subject = "tell a friend";
$mail->MsgHTML($body);
$mail->Send();

Des idées?

MODIFIER

s'avère la SetFrom() la fonction n'existent pas dans ma version de phpmailer, je peux mettre ces valeurs à l'aide

$mail->From = '';
$mail->FromName = '';

OriginalL'auteur dotty | 2010-03-24