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


When I send a mail at ok@gmail.com using the php mailer then match the same address in the head to "to" Displays twice in

like this: to: ok@gmail.com; Ok@gmail.com

Simple I used to:

  $ mail-> AddAddress ("ok@gmail.com"); $ Mail- & gt; Subject = $ theme; $ Mail- & gt; Body = $ body; $ Mail & gt; IsHTML (true); $ Mail & gt; Send (); $ Mail & gt; ClearAddresses ();  
  

$ Mail-> AddAddress ("ok@gmail.com", "Mr. John Smith");

When you do not set the name mail mail and name are used for both things.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -