Wo ist der Fehler?
$mail = new PHPMailer(); // defaults to using php "mail()"
$body = eregi_replace("[\]",'',$text);
$mail->AddReplyTo($from, "LyD Fasttaxi");
$mail->SetFrom($from, 'LyD Fasttaxi');
$address = $to;
$mail->AddAddress($address, "");
$mail->Subject = $subject;
$mail->AltBody = "Diese E-Mail ist in HTML. Bitte oeffne sie, mit einem kompatiblen E-Mail Programm."; // optional, comment out and test
$mail->MsgHTML($body);