When converting the € sign the output becomes € in plain ascii and outlook express won't accept that. The danish letters æ,ø,å works in this way, but not when sending the mail to a mac computer.
What I do is:
Code: Select all
function bs_mail($to_name, $to_email_address, $email_subject, $message, $from_email_name, $from_email_address) {
$to = $to_name.' <'.$to_email_address.'>';
$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";
$headers .= 'From: '.$from_email_name. ' <'.$from_email_address.'>'."\r\n" .
'X-Mailer: '.BS_SHOPNAME;
$message = mb_convert_encoding($message,"utf-8");
$message = str_replace("€","€",$message); //The php convert encoding for UTF-8 doesn't work with mails. This works better
$message = mb_convert_encoding($message,"quoted-printable");
mail($to, $email_subject, $message, $headers);
}Any ideas about this?
Best regards,
broch