") { // Don't wrap lines starting with a > $wrapped .= "$val\n"; } else { while (strlen($val) > 0) { if (strlen($val) <= $length) { $wrapped .= "$val\n"; $val = ""; } else { $pos = strrpos(substr($val, 0, $length), " "); if ($pos) { $wrapped .= substr($val, 0, $pos)."\n"; $val = trim(substr($val, $pos)); } else { $pos = strpos($val, " "); if ($pos) { $wrapped .= substr($val, 0, $pos)."\n"; $val = trim(substr($val, $pos)); } else { $wrapped .= "$val\n"; $val = ""; } } } } } } return $wrapped; } ?>
Aliens Stole My Handbag! |
|
| Home | Progress Report | What's Happening? | Hotel Info | Latest News | Hall of Fame | Application Form | Links | Contact Us |
Contact Us |
Feedback FormYou must enter your email address."; $send = ""; } if (!strlen(trim($mailsubject))) { echo "You must enter a subject. "; $send = ""; } if (!strlen(trim($mailmessage))) { echo "You must enter a message to send to LostCarPark. "; $send = ""; } } // Message confirmed, so send! if ($confirm) { $headers = "From: $mailfrom\n"; $headers .= "X-Sender: $mailfrom\n"; $headers .= "X-Mailer: Lost Car Park Mailer\n"; // mailer $headers .= "Return-Path: $mailfrom\n"; if (mail($mailto, $mailsubject, WrapText($mailmessage, 70), $headers)) { echo "Your message has been sent! "; $sent = "1"; $confirm = ""; } else { echo "Failed to send message. "; $confirm = ""; } } // Common fields always shown. echo " |