0
I have a form that sends e-mail normally, but when I put the option to send a copy to the customer’s email, it does not send. I did several tests and found that he does not send e-mail to any account that is not from the server itself. That is, I am receiving customer orders, but customers are not receiving a copy, as I should receive. What I do?
$to = $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: $email\r\n"; // remetente
$headers .= 'Cc: [email protected]' . "\r\n";
//mail($to,$subject,$message,$headers);
if(mail($to,$subject,$message,$headers)) {
}
On the part of $to
was for him to send a copy to the e-mail registered in the form ($email
)
Thank you for your attention!
When supplementing a question that has not yielded results, edit it instead of re-asking it. By the way, repeating the comment already made in your original question, you keep not putting the
< >
missing from email addresses.– Bacco
Hi Bacco, I even tried to delete that question, but I’m new here and I didn’t see how to do it. I put <> but still didn’t send.
– Alessandro Ramos
And the weirdest that in the email that this request will, appears in the header right the client’s email as copy, but that ends up not being sent. :(
– Alessandro Ramos
Since there is no answer there, you can click edit below and add as many details as you need. The very fact of editing brings her back to the queue of posts with activity, attracting more attention. In fact, it does not serve as an answer to the question, but serves as a test: calling the mail function twice, once with each address.
– Bacco