# (PHP and Flash) Send Mail Form with special characters

**URL:** https://forum.kirupa.com/t/php-and-flash-send-mail-form-with-special-characters/8872
**Category:** flash
**Created:** [November 30, 2002, 12:41am UTC](https://forum.kirupa.com/t/php-and-flash-send-mail-form-with-special-characters/8872 "2002-11-30T00:41:25Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jarenjel](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@jarenjel](https://forum.kirupa.com/u/jarenjel)
#### Post date: [November 30, 2002, 12:41am UTC](https://forum.kirupa.com/t/php-and-flash-send-mail-form-with-special-characters/8872/1 "2002-11-30T00:41:25Z")

</div>

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.

☹

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 30, 2002, 11:03am UTC](https://forum.kirupa.com/t/php-and-flash-send-mail-form-with-special-characters/8872/2 "2002-11-30T11:03:31Z")

</div>

```php
System.useCodepage=true;

```

yours,  
h88

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 30, 2002, 2:10pm UTC](https://forum.kirupa.com/t/php-and-flash-send-mail-form-with-special-characters/8872/3 "2002-11-30T14:10:49Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 30, 2002, 10:02pm UTC](https://forum.kirupa.com/t/php-and-flash-send-mail-form-with-special-characters/8872/4 "2002-11-30T22:02:13Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 30, 2002, 10:27pm UTC](https://forum.kirupa.com/t/php-and-flash-send-mail-form-with-special-characters/8872/5 "2002-11-30T22:27:15Z")

</div>

Yes, now is working, thanks a lot 🙂

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:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 30, 2002, 10:45pm UTC](https://forum.kirupa.com/t/php-and-flash-send-mail-form-with-special-characters/8872/6 "2002-11-30T22:45:35Z")

</div>

No problem! 🙂

Here is a php mailer:

```php
<?
$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:
