rafiki
08-31-2006, 08:15 PM
<?php
$to = "west.jamie@gmail.com";
$subject = "Jamie Wests Survey Results";
$header = "from west.jamie@gmail.com 'X-Mailer: PHP/' . phpversion();";
$message = "NAME: {$_POST['firsname']} {$_POST['surname']} DOB:{$_POST['dob']} Year in school:
{$_POST['year_school']} siblings: {$_POST['siblings']} bedtime: {$_POST['dob']} homework time:
{$_POST['homework']} tv time: {$_POST['tv']} computer time: {$_POST['computer']}
family time: {$_POST['family']} time with friends: {$_POST['friends']}";
$message = wordwrap($message, 70);
mail($to, $subject, $header, $message);
?>
it sends me the email, but misses out some of the message, anybody got any idea y?
$to = "west.jamie@gmail.com";
$subject = "Jamie Wests Survey Results";
$header = "from west.jamie@gmail.com 'X-Mailer: PHP/' . phpversion();";
$message = "NAME: {$_POST['firsname']} {$_POST['surname']} DOB:{$_POST['dob']} Year in school:
{$_POST['year_school']} siblings: {$_POST['siblings']} bedtime: {$_POST['dob']} homework time:
{$_POST['homework']} tv time: {$_POST['tv']} computer time: {$_POST['computer']}
family time: {$_POST['family']} time with friends: {$_POST['friends']}";
$message = wordwrap($message, 70);
mail($to, $subject, $header, $message);
?>
it sends me the email, but misses out some of the message, anybody got any idea y?