Re: [FX.php List] (mail) - problems with Æ - Ø - Å
Vision Computer Consulting
info at visioncomputerconsulting.com
Thu Apr 19 17:33:40 MDT 2007
These are HTML codings for these characters. Are you sending mail as
test or doing HTML mail. I believe the PHP mail function is doing
test for the email content.
Here are function that do text mail or HTML depending on how you are
sending.
function MAIL_NVLP($fromname, $fromaddress, $toname, $toaddress,
$subject, $message) {
// Copyright 2005 ECRIA LLC, http://www.ECRIA.com
// Please use or modify for any purpose but leave this notice
unchanged.
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: php\n";
$headers .= "From: \"".$fromname."\" <".$fromaddress.">\n";
mail($toaddress, $subject, $message, $headers);
return true;
}
function MAIL_NVLP_WEB($fromname, $fromaddress, $toname, $toaddress,
$subject, $message) {
// Copyright 2005 ECRIA LLC, http://www.ECRIA.com
// Please use or modify for any purpose but leave this notice
unchanged.
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: php\n";
$headers .= "From: \"".$fromname."\" <".$fromaddress.">\n";
//echo "$toaddress, $subject, $message, $headers";
return mail($toaddress, $subject, $message, $headers);
}
On Apr 19, 2007, at 3:04 PM, Belsaas Utviklinger wrote:
> Hello, I have a send mail in my fx.php-site. I use the php-code
> "(mail)".
> When there is a æ/Æ, ø/Ø or å/Å in the data from FileMaker, the
> text in the
> mail come with "wrong text". The letters print like this:
> æ = æ
> Æ = Æ
> ø = ø
> Ø = Ø
> å = å
> Å = Å
>
> Someone out there nowes anything about this? Please...
>
>
> Baard
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
More information about the FX.php_List
mailing list