Let's take example that I have three Email addresses.
-testing1@gmail.com
-testing2@gmail.com
-testing3@gmail.com
I want to set reply to field to testing3@gmail.com always. If i send an email from testing1@gmail.com to testing2@gmail.com then it's working.
But If send an email from testing1@gmail.com to testing1@gmail.com and set reply to field to testing3@gmail.com then it's not working.
In an popup it shows reply to as testing3@gmail.com.But If I press on reply button it automatically changes to testing1@gmail.com.
I don't know why this is happening. has this happened with anyone before ?
EDIT
Actually this is just a problem of Gmail. In Gmail it doesn't work but it works in yahoo and hotmail. I don't know that is this a bug of Gmail or they have designed it this way.
Edit 2
$mail = new PHPMailer;
$mail->IsSMTP(); // Set mailer to use SMTP
$mail->Host = 'smtp.gmail.com'; // Specify main and backup server
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'test1'; // SMTP username
$mail->Password = 'PASSWORD'; // SMTP password
$mail->SMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted
$mail->From = ''test1@gmail.com";
$mail->AddAddress('test1@gmail.com', $name); // Add a recipient
$mail->AddReplyTo('list123@gamil.com', 'List manager');
$mail->WordWrap = 50; // Set word wrap to 50 characters
$mail->IsHTML(true); // Set email format to HTML
$message = "Hi Hello" ;
$mail->Subject = 'Subject;
$mail->Body = $message;
$mail->Send();
Note
I am giving same address in sender and receiver both. But giving different replyTo.