# Flash to PHP email - Char limit problem

**URL:** <https://forum.kirupa.com/t/flash-to-php-email-char-limit-problem/329234>\
**Category:** programming\
**Created:** [August 5, 2012, 10:32am UTC](https://forum.kirupa.com/t/flash-to-php-email-char-limit-problem/329234 "2012-08-05T10:32:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbrooks99](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@sbrooks99](https://forum.kirupa.com/u/sbrooks99)\
**Post date:** [August 5, 2012, 10:32am UTC](https://forum.kirupa.com/t/flash-to-php-email-char-limit-problem/329234/1 "2012-08-05T10:32:31Z")

</div>

Hi

My first time using PHP. I want to just send an email from Flash, but it’s not as simple as I hoped.

In my code it works fine until I change the message variable to a long string. I think there’s a limit? Why would there be a limit? And what is the work around this?

```php
<?php $to = ($_POST['email']); $subject = "Your Answers"; $message = "Hi" . $_POST['name'] . "
";$message .= "Here are your given answers: 

";
$message .= ($_POST['message']); ////////// Long string!

$message .= "

---------------------------
"; $message .= "From: " . $_POST['name'] . "Email: " . $_POST['email'] . "
"; if(@mail("$to", "Your Answers", $message, $headers)) { echo "answer=ok"; } else { echo "answer=error"; } ?>

```

Thanks for any help
