# Flash php email - small bugaboo

**URL:** <https://forum.kirupa.com/t/flash-php-email-small-bugaboo/177666>\
**Category:** Uncategorized\
**Created:** [February 3, 2006, 10:19pm UTC](https://forum.kirupa.com/t/flash-php-email-small-bugaboo/177666 "2006-02-03T22:19:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![content71](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/content71/32/2122_2.png) [@content71](https://forum.kirupa.com/u/content71)\
**Post date:** [February 3, 2006, 10:19pm UTC](https://forum.kirupa.com/t/flash-php-email-small-bugaboo/177666/1 "2006-02-03T22:19:32Z")

</div>

Hey! Just (finally) worked my way through Senocular’s excellent tutorial and have managed to generate an email that returns the input text made in Flash.

[http://www.kirupa.com/developer/actionscript/flash\_php\_email.htm](http://www.kirupa.com/developer/actionscript/flash_php_email.htm)

the only problem is the resulting email strings the returned variables together in one long line - this is sure to confuse my client.

Is there an easy way to add “line breaks” inbetween the returned variables?

Here’s a c&p of the code I am using…

\<?php  
$sendTo = "me@myemailaddress.com";  
$subject = “Appointment Request”;

$headers = "From: " . $\_POST[“name”];  
$headers .= “\<” . $\_POST[“email”] . "\>  
";  
$headers .= "Reply-To: " . $\_POST[“email”] . "  
";  
$headers .= "Return-Path: " . $\_POST[“email”];

$message = $\_POST[“name”];  
$message .= $\_POST[“email”];  
$message .= $\_POST[“phone”];  
$message .= $\_POST[“date”];  
$message .= $\_POST[“comments”];

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

What I’m after an email message that looks like this:

Joe Blow  
[joeb@invalid.com](mailto:joeb@invalid.com)  
555-1212  
Feb 14  
Hey! Cool form.

instead of this:

Joe [Blowjoeb@invalid.com](mailto:Blowjoeb@invalid.com)555-1212Feb 14Hey! Cool form.

thanks to Senocular for such a cool tutorial - was very happy to find it.

cheers  
©
