PHPMailer erroring mit Call to undefined method PHPMailer::SetFrom()

Hay ich bin mit PHPMailer senden einfache E-Mails, jedoch ist die Funktion SetFrom() scheint nicht zu funktionieren, obwohl der code, den ich verwende ist direkt aus phpmails docs (http://phpmailer.worxware.com/index.php?pg=examplebmail)

Hier mein Fehler

Call to undefined method PHPMailer::SetFrom()

und mein Skript

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();

Irgendwelche Ideen?

BEARBEITEN

stellt sich heraus, der SetFrom () - Funktion nicht in meiner version von phpmailer, ich kann diese Werte mit

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

InformationsquelleAutor dotty | 2010-03-24

Schreibe einen Kommentar