(PHP and Flash) Send Mail Form with special characters

I am working with a form (Flash and PHP), everything works great, but the characters like á, é ö or ñ doesn’t appear in the resulting FORM e-mail.

I use a text file with script to send the email off (contacto.php3)

Hope someone can help me.

Thanks.

:frowning:

System.useCodepage=true;

yours,
h88

Thanks for your help. But when I insert the code that you gave me the form doesen’t work any more.

This is the code that I am using in the .php3 file:

<?php
mail("contacto2025@fundacion2025.com", $nombre, $comentarios, “From: PHPMailer
Reply-To: $email
X-Mailer: PHP/” . phpversion());
?>

Could you tell me where, System.useCodepage=true; must go?

Thanks again.

First Frame in your _root (main) timeline. If u need a php mailer, just reply. :slight_smile:

Yes, now is working, thanks a lot :slight_smile:

Do you have a mailer example?, It could help me in order to compare and understand better my actual code with other one.

Well thanks for all… :cowboy:

No problem! :slight_smile:

Here is a php mailer:

<?
$recipient = "fake@fake.com";
unset($HTTP_POST_VARS['onLoad']);
unset($HTTP_POST_VARS['clear']);
$body = "The following information was submitted...

";
foreach($HTTP_POST_VARS as $key => $value) {
    $key = substr($key, 0, -4);
    $body .= "$key: $value
";
}
$from = $HTTP_POST_VARS['name_txt'] . " <" . $HTTP_POST_VARS['email_txt'] . ">";
mail($recipient, $HTTP_POST_VARS['subject_txt'], $body, "From: $from");
?>

Yours,
h88 :bandit: