I am trying so send email with html body, I form it with entries from DB and everything okay, when i check composed message using
echo $message;
I see great composed text without any errors, but after sending it using mail() function, I have trouble with only 1 symbol.
All page and all data in utf-8, header set to utf as well:
$headers .= "Content-type: text/html; charset=utf-8
";
echo result:
gmail result:
How can I solve this problem?
I found the solution Added to headers and remove any charset
$headers .= "Content-type: text/html
";
$headers .= "Content-Transfer-Encoding: base64" . "
";
And do that with all my message:
$message = rtrim(chunk_split(base64_encode($message)));
Now everything works!