I have a form that sends the data to the administrator, but does not send the copy to the client's email.
Follow the code:
$to = $email;
$emailoculto = $email;
$subject = "Seu pedido ao restaurante BARDANA - Número do Pedido: 00" .$gerador;
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=UTF-8\r\n";
$headers .= "From: \"{$nome}\" <[email protected]>\r\n";
$headers .= "Cc: <[email protected]>\r\n";
$headers .= "Bcc: {$emailoculto}\r\n";
//mail($to,$subject,$message,$headers);
if(mail($to,$subject,$message,$headers))
{
Here's the idea of putting Bcc
in this way, but it's not going to copy anyway. In the email [email protected] I usually receive, and copy to the client's email still appears, but in fact he does not send this copy.