Send a mail with mail()
Posted: Sat Sep 13, 2008 7:47 am
Hi,
I want to send a mail with mail() and especially a EURO sign €
If I just send the message
$message = "€ Mail text";
it will turn up as a ?.
then I try to make a different header on the mail like this:
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/plain; charset=UTF-8\r\n";
$headers .= "Content-Transfer-Encoding: quoted-printable\r\n";
and then encode the $message with
$message = mb_convert_encoding($message,"quoted-printable","ASCII");
When I then receive the mail I just get a blank space in where the € should have been even though it looks correct when I check the source of the mail: =80 Mail text
So could anybody help me and tell mere what I do wrong, or if there is another way to send a € in a plain text email.
Help is much appreciated.
Thanks,
broch
I want to send a mail with mail() and especially a EURO sign €
If I just send the message
$message = "€ Mail text";
it will turn up as a ?.
then I try to make a different header on the mail like this:
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/plain; charset=UTF-8\r\n";
$headers .= "Content-Transfer-Encoding: quoted-printable\r\n";
and then encode the $message with
$message = mb_convert_encoding($message,"quoted-printable","ASCII");
When I then receive the mail I just get a blank space in where the € should have been even though it looks correct when I check the source of the mail: =80 Mail text
So could anybody help me and tell mere what I do wrong, or if there is another way to send a € in a plain text email.
Help is much appreciated.
Thanks,
broch