question about mail

From: Date: Wed, 04 Feb 2004 04:44:44 +0000
Subject: question about mail
Groups: php.i18n 
Request: Send a blank email to php-i18n+get-658@lists.php.net to get a copy of this message
OK i am forcing the database to work in the UTF8 character set and am sending the email in UTF8. I beleive that I have all of the headers working right but I have 1 small problem. Outlook is not displaying the email in the correct character set (UTF8). How can I have Outlook automatically switch over to the UTF8 character set. I already have the header stating the charset as UTF8 or am I doing that wrong?If I open the email and switch the encoding to UTF8 it views perfectly fine. So what am I doing wrong? Code: // headers $headers = "From: $frName <$frEmail>\r\n"; // From $headers .= "Reply-To: $frReToName<$frReToEmail>\n"; // Reply to $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-type: text/plain; charset=utf8 \n"; //utf8 $headers .= "Content-Transfer-Encoding: base64 \r\n"; // base 64 encoding // body of the message mb_language("uni"); // set to Unicode $message = chunk_split(base64_encode($tMess)); //encode and split line into workable parts // display email echo "$add<br>"; echo "$sub<BR>"; echo "$headers<BR>"; echo "$message"; $decodedMessage = base64_decode($message); echo "$decodedMessage<BR>"; // send email $sent = mail($add, $sub, $message, $headers);

« previous php.i18n (#658) next »