# How to customize the e-mail that I receive from a Flash Form + PHP?

**URL:** <https://forum.kirupa.com/t/how-to-customize-the-e-mail-that-i-receive-from-a-flash-form-php/185352>\
**Category:** Uncategorized\
**Created:** [April 12, 2006, 6:04pm UTC](https://forum.kirupa.com/t/how-to-customize-the-e-mail-that-i-receive-from-a-flash-form-php/185352 "2006-04-12T18:04:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedro\_spy](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@pedro\_spy](https://forum.kirupa.com/u/pedro_spy)\
**Post date:** [April 12, 2006, 6:04pm UTC](https://forum.kirupa.com/t/how-to-customize-the-e-mail-that-i-receive-from-a-flash-form-php/185352/1 "2006-04-12T18:04:02Z")

</div>

(I don’t speak English! I’ll try to write something understandable!)

Hi! I made the tutorial [COLOR=black]“Based[/COLOR][FONT=Verdana][COLOR=black] Email Form Using PHP”, and I add more fields. My .swf file contains the following fields:[/COLOR][/FONT]

[FONT=Verdana][COLOR=black]Name[/COLOR][/FONT]  
[FONT=Verdana][COLOR=black]Email[/COLOR][/FONT]  
[FONT=Verdana][COLOR=black]Adress[/COLOR][/FONT]  
[FONT=Verdana][COLOR=black]Phone

My PHP script is this:

[/COLOR][/FONT][FONT=Verdana][COLOR=black]

```php

<?php 
 
$sendTo = "pedro.spy@gmail.com"; 
$subject = "Contact";
$headers = "From: " . $_POST["name"] ." <" . $_POST["email"] .">
";
$message = $_POST["nome"]. "

". $_POST["adress"]. "

". $_POST["phone"]. "

". $_POST[email];
 
mail($sendTo, $subject, $message, $headers); 
?>

```

Ok. When I receive a message posted through this Flash Email Form, it’s like this:

> 

Pedro Henrique

[pedro.spy@gmail.com](mailto:pedro.spy@gmail.com)

279 Leonina de Oliveira Street

(35) 98060079

But I want to receive a message like this:

> 

Name: Pedro Henrique

Email: [pedro.spy@gmail.com](mailto:pedro.spy@gmail.com)

Adress: 279 Leonina de Oliveira Street

Phone: (35) 98060079

How can I add something to script to receive the message with those titles (Name: - Email: - Adress: - Phone: )?

Sorry for my English!  
[/COLOR][/FONT]

---

<div class="post-metadata">

**Author:** ![SlowRoasted](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@SlowRoasted](https://forum.kirupa.com/u/SlowRoasted)\
**Post date:** [April 12, 2006, 6:10pm UTC](https://forum.kirupa.com/t/how-to-customize-the-e-mail-that-i-receive-from-a-flash-form-php/185352/2 "2006-04-12T18:10:28Z")

</div>

```php

<?php 

$sendTo = "pedro.spy@gmail.com"; 
$subject = "Contact";
$headers = "From: " . $_POST["name"] ." <" . $_POST["email"] .">
";
$message = "Name: ".$_POST["nome"]. "

Address: ". $_POST["adress"]. "

Phone: ". $_POST["phone"]. "

Email: ". $_POST[email];

mail($sendTo, $subject, $message, $headers); 
?> 

```

---

<div class="post-metadata">

**Author:** ![pedro\_spy](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@pedro\_spy](https://forum.kirupa.com/u/pedro_spy)\
**Post date:** [April 12, 2006, 6:23pm UTC](https://forum.kirupa.com/t/how-to-customize-the-e-mail-that-i-receive-from-a-flash-form-php/185352/3 "2006-04-12T18:23:07Z")

</div>

Thanks Slow, it works! =)
