Special characters not supported by Hotmail and Apple Mail?
Posted: Mon May 22, 2006 11:29 am
Hi
I'm currently creating a website which sends HTML e-mails out to a few selected e-mail accounts. The system is working just fine, except Apple Mail and Hotmail (haven't tried in Outlook yet) doesn't support some special characters from my language: æøå. They are however supported in Gmail. Anyone know a workaround for this problem?
ex: æ = æ
My PHP code:
HTML mail:
Thanks, and have a nice day 
I'm currently creating a website which sends HTML e-mails out to a few selected e-mail accounts. The system is working just fine, except Apple Mail and Hotmail (haven't tried in Outlook yet) doesn't support some special characters from my language: æøå. They are however supported in Gmail. Anyone know a workaround for this problem?
ex: æ = æ
My PHP code:
Code: Select all
<?php
// recipient and subject
$sendTo = $_POST["mortenkh@hotmail.com"];
$subject = $_POST["overskriftVar"];
// just some headers
$headers = "From: Panduro Hobby <info@panduro-hobby.dk> \r\n" . "MIME-Version: 1.0 \r\n" . "Content-type: text/html; charset=iso-8859-1 \r\n";
$headers .= "Reply-To: info@panduro-hobby.dk \r\n";
$headers .= "Return-path: " . $_POST["mailVar"];
// content
$message = $_POST["indholdVar"];
// if the message contains backslashes, they (the backslashes) are deleted
if (get_magic_quotes_gpc()) {
$message = stripslashes($message);
}
// send
mail($sendTo, $subject, $message, $headers);
?>Code: Select all
<html>
<head>
<title>Macro-Design</title>
</head>
<body>
<table width="750px">
Kære Morten Kiehn Holst
<br><br>
<table width="100%" height="20px" bgcolor="#bdd8f6">Velkommen til vores lille lækre nyhedsbrev, her kan du læse om vores nyheder, idéer og andre spændende ting. </table>
<img src="http://macro-design.org/logo.jpg">
</table>
</body>
</html>