I’m sending a PHP email using:
mail($email, $subject, $message, $header);
I layout the message like this which includes some tables with prices like this:
$message = <<<EOF
<td style=\"border-bottom: 1px solid black; padding-bottom:4px; padding-top:4px; padding-right: 10px; text-align:right;\">£</td>
EOF;
On certain email clients the £ appears as £.
I understand this is to do with character formatting. But how do set UTF-8 character set when sending a PHP email in this way?
TIA
Firstly, you could use
instead of the raw
£character.To set character encoding of email, set up the headers: