phpmailer - In "To" header same Address display two times in mail when using php mailer


When i send mail to [email protected] using php mailer then In "To" header same Address display two times in mail

Like This: To: [email protected]; [email protected]

simple i used this:

$mail->AddAddress("[email protected]");
$mail->Subject = $subject;
$mail->Body = $body;



AddAddress must contain 2 values receiver mail and name.

$mail->AddAddress("[email protected]", "Mr. John Smith");

When you don't set name the mail is used for both things mail and name.

People are also looking for solutions to the problem: php - SendMessage php_serial_class: sms begins with an empty row, the second row begins with ">" symbol


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.