Greetings!
From a Flash based form, users of my site can send emails.
This is the PHP Script I use to:
<?php
$sender = stripslashes($_POST["sender" ]);
$sender_mail = stripslashes($_POST["sender_mail" ]);
$to = stripslashes($_POST["to" ]);
$email = stripslashes($_POST["email" ]);
$subject = stripslashes($_POST ["subject" ]);
$body = stripslashes($_POST ["body" ]);
$footer="\n\n---------------------------\nMail sent by: $s_name <$s_mail>\n";
$message = $body.$footer;
mail("\"".$to."\" <".$email.">", $subject, $message, "From: \"".$sender."\" <".$sender_mail.">");
?>
Alas, the mail messages don't accurately display the accented characters (à è é etc...) when using French language.
The message header show:
X-Amavis-Alert: BAD HEADER, Non-encoded 8-bit data (char E9 hex): From:
"G\351rard Mariscalchi...
Any idea to solve this problem?
Many thanks in advance for your help!
Gerry