# Bug with php3 Header

**URL:** <https://forum.kirupa.com/t/bug-with-php3-header/268919>\
**Category:** programming\
**Created:** [August 20, 2008, 12:58pm UTC](https://forum.kirupa.com/t/bug-with-php3-header/268919 "2008-08-20T12:58:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![thierrydehove](https://avatars.discourse-cdn.com/v4/letter/t/aeb1de/32.png) [@thierrydehove](https://forum.kirupa.com/u/thierrydehove)\
**Post date:** [August 20, 2008, 12:58pm UTC](https://forum.kirupa.com/t/bug-with-php3-header/268919/1 "2008-08-20T12:58:22Z")

</div>

Good Morning,  
I have built a form inside Flash CS3 with a php3

**site**  
[http://www.pablomarroquin.com/flash/main.html](http://www.pablomarroquin.com/flash/main.html)

I got this  
name = name  
message = message  
your email = I don’t get his email but this [Pablo@qalth.pair.com](mailto:Pablo@qalth.pair.com) (pair is the hosting of this site)

**below my php3 code**  
\<?php  
mail("tanama@tanama.net", $subject, $message, “From: Pablo  
Reply-To: $from  
X-Mailer: PHP/” . phpversion());  
?\>

Please let me know and thanks a lot  
Thierry

---

<div class="post-metadata">

**Author:** ![hl1](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hl1/32/849_2.png) [@hl1](https://forum.kirupa.com/u/hl1)\
**Post date:** [August 24, 2008, 4:59pm UTC](https://forum.kirupa.com/t/bug-with-php3-header/268919/2 "2008-08-24T16:59:01Z")

</div>

[QUOTE=thierrydehove;2376069]Good Morning,  
I have built a form inside Flash CS3 with a php3

**site**  
[http://www.pablomarroquin.com/flash/main.html](http://www.pablomarroquin.com/flash/main.html)

I got this  
name = name  
message = message  
your email = I don’t get his email but this [Pablo@qalth.pair.com](mailto:Pablo@qalth.pair.com) (pair is the hosting of this site)

**below my php3 code**  
\<?php  
mail("tanama@tanama.net", $subject, $message, “From: Pablo  
Reply-To: $from  
X-Mailer: PHP/” . phpversion());  
?\>

Please let me know and thanks a lot  
Thierry[/QUOTE]

The email should be part of your From header.

```php
mail("tanama@tanama.net", $subject, $message, "From: Pablo <" . $ from . ">
Reply-To: " . $from . "
X-Mailer: PHP/" . phpversion());

```

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [August 24, 2008, 5:10pm UTC](https://forum.kirupa.com/t/bug-with-php3-header/268919/3 "2008-08-24T17:10:53Z")

</div>

And those should be single-quotes, not double-quotes, because you’re not using string interpolation.

---

<div class="post-metadata">

**Author:** ![hl1](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hl1/32/849_2.png) [@hl1](https://forum.kirupa.com/u/hl1)\
**Post date:** [August 24, 2008, 5:39pm UTC](https://forum.kirupa.com/t/bug-with-php3-header/268919/4 "2008-08-24T17:39:31Z")

</div>

[QUOTE=Jeff Wheeler;2377736]And those should be single-quotes, not double-quotes, because you’re not using string interpolation.[/QUOTE]

Snob. 😛

---

<div class="post-metadata">

**Author:** ![Esherido](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/esherido/32/2158_2.png) [@Esherido](https://forum.kirupa.com/u/Esherido)\
**Post date:** [August 24, 2008, 6:34pm UTC](https://forum.kirupa.com/t/bug-with-php3-header/268919/5 "2008-08-24T18:34:38Z")

</div>

[QUOTE=Jeff Wheeler;2377736]And those should be single-quotes, not double-quotes, because you’re not using string interpolation.[/QUOTE]  
Checking for signs of life Captain. Beep… beep… beep… beep… beep… . Sorry Captain, no signs of life here, though I did notice that there is a cold lump of rock shaped like a human being ahead.

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [August 24, 2008, 6:35pm UTC](https://forum.kirupa.com/t/bug-with-php3-header/268919/6 "2008-08-24T18:35:39Z")

</div>

[QUOTE=hl;2377740]Snob. :P[/QUOTE]

🙂
