Code page problem in Outlook
Hi,
I have a problem with outlook mail recievers, they got strange chars instead of Scandic letters (Finland)
Like this: Tämän it should be: Tämän
There is no problem with mac mail or with g-mail, only with Outlook and windows mail users. I've set up Universal mail to use UTF-8 and form page is using UTF-8 as well.
If I set-up Outlook to use UTF-8, message is OK, however if Outlook has Automate char on it will not change it to UFT-8.
I've even tried top change everything to iso-8859-1 but it do not help, problem stays.
Any idea, what next
Juha
Here is source code:
kysely.php begin: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd“> <html xmlns=”http://www.w3.org/1999/xhtml“> <head> <meta http-equiv="Content-Type” content="text/html; charset=UTF-8" /> <title>XeniouX</title> <style type="text/css" media="all">
..... and waue_kysely_1.php
<?php $MailAttachments = ""; $MailBCC = ""; $MailCC = ""; $MailTo = ""; $MailBodyFormat = ""; $MailBody = ""; $MailImportance = ""; $MailFrom = “info@xenioux.com”; $MailSubject = "".((isset($_POST["subject"]))?$_POST["subject"]:"") .""; $_SERVER["QUERY_STRING"] = "";
//Global Variables
$WA_MailObject = WAUE_Definition("/usr/share/pear/","10.2.1.20","25","xxxx","xxxx","true","","","","UTF-8");
if ($RecipientEmail) {
$WA_MailObject = WAUE_AddRecipient($WA_MailObject,$RecipientEmail);
} else {
//To Entries
}
//Additional Headers
//Attachment Entries
//BCC Entries
//CC Entries
//Body Format
$WA_MailObject = WAUE_BodyFormat($WA_MailObject,0);
//Set Importance
$WA_MailObject = WAUE_SetImportance($WA_MailObject,"3");
//Start Mail Body $MailBody = $MailBody . “<html><head>\r\n”; $MailBody = $MailBody . “<meta http-equiv=\"Content-Type\” content=\"text/html; charset=UTF-8\" />\r\n"; $MailBody = $MailBody . “<style type=\"text/css\">\r\n”; $MailBody = $MailBody . “body p \r\n”; $MailBody = $MailBody . “</style>\r\n”; $MailBody = $MailBody . “</head><body>\r\n”; $MailBody = $MailBody . “<p><img name=\"\” src=\"http://www.xenioux.com"; $MailBody = $MailBody . ((isset($_POST["logo_link"]))?$_POST["logo_link"]:""); $MailBody = $MailBody . “\” alt=\"Logo\" /><br />\r\n"; $MailBody = $MailBody . " <br />\r\n"; $MailBody = $MailBody . " “; $MailBody = $MailBody . nl2br(((isset($_POST["content"]))?$_POST["content"]:"")); $MailBody = $MailBody . "<br /> \r\n”; $MailBody = $MailBody . "http://www.xenioux.com/kysely.php?ref="; $MailBody = $MailBody . ((isset($_POST["ref"]))?$_POST["ref"]:""); $MailBody = $MailBody . “&reference=”; $MailBody = $MailBody . ((isset($_POST["viite"]))?$_POST["viite"]:""); $MailBody = $MailBody . “&product=”; $MailBody = $MailBody . ((isset($_POST["tuote"]))?$_POST["tuote"]:""); $MailBody = $MailBody . “<a href=\”http://www.xenioux.com\" target=\"_new\"><br />\r\n"; $MailBody = $MailBody . " Powered by<br />\r\n"; $MailBody = $MailBody . “<img src=\”http://www.xenioux.com/images/logo.jpg\" alt=\"\" name=\"\" width=\"90\" height=\"50\" /></a></p>\r\n"; $MailBody = $MailBody . “<p> </p>\r\n”; $MailBody = $MailBody . “</body></html>”; //End Mail Body
$WA_MailObject = WAUE_SendMail($WA_MailObject,$MailAttachments,$MailBCC,$MailCC,$MailTo,$MailImportance,$MailFrom,$MailSubject,$MailBody,"waue_kysely_1");
if (isset($_SESSION["waue_kysely_1_Status"])) {
$MailLogBindings = new WAUE_Log_Bindings();
//Start Log Bindings
//Success Or Failure
$MailLogBindings->SuccessOrFailure->ToDo = "none";
$MailLogBindings->SuccessOrFailure->Connection = "";
$MailLogBindings->SuccessOrFailure->TableName = "";
$MailLogBindings->SuccessOrFailure->EmailColumn = "";
$MailLogBindings->SuccessOrFailure->ColumnList = array();
$MailLogBindings->SuccessOrFailure->TypeList = array();
$MailLogBindings->SuccessOrFailure->ValueList = array();
//Success Only
$MailLogBindings->Success->ToDo = "none";
$MailLogBindings->Success->Connection = "";
$MailLogBindings->Success->TableName = "";
$MailLogBindings->Success->EmailColumn = "";
$MailLogBindings->Success->ColumnList = array();
$MailLogBindings->Success->TypeList = array();
$MailLogBindings->Success->ValueList = array();
//Failure Only
$MailLogBindings->Failure->ToDo = "none";
$MailLogBindings->Failure->Connection = "";
$MailLogBindings->Failure->TableName = "";
$MailLogBindings->Failure->EmailColumn = "";
$MailLogBindings->Failure->ColumnList = array();
$MailLogBindings->Failure->TypeList = array();
$MailLogBindings->Failure->ValueList = array();
//End Log Bindings
$MailLogBindings->SuccessOrFailure->MailRef = "waue_kysely_1";
$MailLogBindings->Success->MailRef = "waue_kysely_1";
$MailLogBindings->Failure->MailRef = "waue_kysely_1";
$MailLogBindings->processLog(($_SESSION["waue_kysely_1_Status"] == "Failure"));
} $WA_MailObject = null; ?>