phpmailer kann nicht fügen Sie eine Antwort an-Adresse

Ich versuche, das hinzufügen einer Antwortadresse zu meiner php-mailer und es legt einfach von "ich" und die Antworten an meine Adresse.

Irgendwelche Ideen was ich falsch mache? Ich habe die $post->AddReplyTo. Ich will, dass es dem Absender Antworten des web-Formulars.

$name = $_POST['name'];
$telephone = $_POST['telephone'];
$email = $_POST['email'];
$message = $_POST['message'];

$body             = file_get_contents('phpmailer/contents.html');
$body             = eregi_replace("[\]",'',$body);
$body             = eregi_replace("<name>", $name,$body);
$body             = eregi_replace("<telephone>", $telephone, $body);
$body             = eregi_replace("<email>", $email, $body);
$body             = eregi_replace("<message>", $message, $body);




$mail->IsSMTP(); //telling the class to use SMTP
$mail->Host       = "smtp.gmail.com"; //SMTP server
                    //enables SMTP debug information (for testing)
                                           //1 = errors and messages
                                           //2 = messages only
$mail->SMTPAuth   = true;                  //enable SMTP authentication
$mail->SMTPSecure = "ssl";                 //sets the prefix to the servier
$mail->Host       = "smtp.gmail.com";      //sets GMAIL as the SMTP server
$mail->Port       = 465;                   //set the SMTP port for the GMAIL server
$mail->Username   = "[email protected]";  //GMAIL username
$mail->Password   = "xxxxx"; 

$mail->AddReplyTo($email, $name);


$address = "xxxx.net";

$mail->AddAddress($address, "Contact form");

$mail->Subject    = " Contact Form";
InformationsquelleAutor Roscoeh | 2010-10-21
Schreibe einen Kommentar