Mail header problem

I’m sending email using PHP mail function and the email contains HTML tags so in the header I used Content-type: text/html; charset=iso-8859-1 but the problem is that in the email body the ;charset=iso-8859-1 so can you tell me what is the problem

Can you tell me where your PHP mail script is so I can check it and see if I can verify the problem?

I put it in a controller. I’m using Laravel and I this is the code where I put my mail header
$headers = 'MIME-Version: 1.0' . "\\r\ "; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\\r\ "; mail($to, $subject, $message, $headers);

Could you try using Laravel’s built-in mail system as well? sendmail is still sendmail, but with the official Mail system you can at least be sure that if any errors are generated, that they will bubble up properly.

Your code on the other hand doesn’t do any error checking and doesn’t even define a sender address (which will get your email discarded on pretty much any mail system in the world).

I did define the sender, the receiver, the subject, and the message but when the email received at beginning of the email I find this ;charset=iso-8859-1