Bug bizonho

Tem um bug do Php que me encheu o saco esses ultimos dias e tava mandando e-mail duplicado.

Para resolver tive que retirar a linha do header que setava o TO:

$headers = “MIME-Version: 1.0\r\n”;
$headers .= “Content-type: text/plain;\r\n”;
$headers .= “From: \””.$nome.”\” <“.strtolower($mail).”>\r\n”;
$headers .= “Subject: “.$assunto.”\r\n”;

Capivarou!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.